Guten Morgen erstmal!
Ich wollte euch kurz fragen ob ihr mir da helfen könnt was ich falsch gemacht habe bzw. was falsch ist.Ich suche schon bestimmt mehr als 30 min danach.Entweder bin ich blind oder zu blöd^^ Wie gesagt hilfe wäre Nice
ERROR: Loading script failed: la_reallife/fraktionen/watts/watts_funcs.lua:1: unexpected symbol near ´?´
Lua
wattspackage_price = 1250
Wattsequip = createMarker ( -2455.5, -111.90000152588, 25, "cylinder", 1, 255, 0, 0, 150 )
function equip_func ( player )
local money = tonumber ( laGetElementData ( player, "money" ) )
if money >= wattspackage_price then
local x, y, z = getElementPosition ( player )
if getDistanceBetweenPoints3D ( x, y, z, -2455.5, -111.90000152588, 25 ) <= 5 then
if isWatts ( player ) then
if laGetElementData ( player, "rang" ) >= 2 then
laSetElementData ( player, "money", money - wattspackage_price )
takePlayerMoney ( player, wattspackage_price )
playSoundFrontEnd ( player, 40 )
triggerClientEvent ( player, "HudEinblendenMoney", getRootElement() )
local weapon = 31
local ammo = 150
giveWeapon ( player, weapon, ammo, true )
triggerClientEvent ( player, "sec_gun_give", getRootElement(), weapon, ammo )
local weapon = 29
local ammo = 120
giveWeapon ( player, weapon, ammo, true )
triggerClientEvent ( player, "sec_gun_give", getRootElement(), weapon, ammo )
local weapon = 22
local ammo = 56
giveWeapon ( player, weapon, ammo, true )
triggerClientEvent ( player, "sec_gun_give", getRootElement(), weapon, ammo )
local weapon = 5
local ammo = 0
giveWeapon ( player, weapon, ammo, true )
triggerClientEvent ( player, "sec_gun_give", getRootElement(), weapon, ammo )
end
if isWatts ( player ) then
outputChatBox ( "Ausruestung gekauft!", player, 125, 0, 0 )
end
else
outputChatBox ( "Du bist kein Watts-Mitglied", player, 125, 0, 0 )
end
else
outputChatBox ( "Du bist nicht beim Lager!", player, 125, 0, 0 )
end
else
triggerClientEvent ( player, "infobox_start", getRootElement(), "Du hast zu\nwenig Geld!\nDas Paket kostet\n"..wattspackage_price.." $!", 5000, 125, 0, 0 )
end
end
addCommandHandler ( "equip", equip_func )
Alles anzeigen
MFG.
Chris
#edit habe den fehler gefunden wäre somit geklärt !