Guten Tag,
Ich wollte euch mal fragen ich bin grad beim Scripten von meinen Post Job aber da gibt es leider einen Fehler ich weis aber nicht was da noch falsch sein könnte!
Lua
function postJobMarkerHit ( typ )
local player = client
local postJobCounter = vioGetElementData ( player, "postJobCounter" )
if not postJobCounter then
vioSetElementData ( player, "postJobCounter", 0 )
postJobCounter = 0
end
local player = client
local postLVL = vioGetElementData ( player, "postLVL" )
if typ == 1 then
vioSetElementData ( player, "money", vioGetElementData ( player, "money" ) + 20 )
vioSetElementData ( player, "postLVL", postLVL + 1 )
setElementFrozen ( player, true )
setPedAnimation ( player, "BOMBER", "BOM_Plant_Crouch_In", 1500, false, false, false, true )
setTimer ( setPedAnimation, 1500, 1, player, "BOMBER", "BOM_Plant_Loop", -1, true, false, false, true )
setTimer (
function ( player )
if isElement ( player ) then
setTimer ( setPedAnimation, 1500, 1, player, "BOMBER", "BOM_Plant_Crouch_Out", 1500, false, false, false, true )
setTimer ( setPedAnimation, 1500, 1, player )
end
end,
Alles anzeigen
Warning/Error:
[2014-02-03 16:44:38] ERROR: Reallife/jobs/post/post_server.lua:158: attempt to perform arithmetic on local 'postLVL' (a boolean value)
Zeile 158:
local postLVL = vioGetElementData ( player, "postLVL" )
Screen der DB:
Externer Inhalt
img5.fotos-hochladen.net
Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
Danke im Vorraus.
MFG
Teke