Hello, I have noob problem. Could someone explain me which return I should use in these scripts:
thanks in advance
Code:
function onStepIn(cid, item, position, fromPosition)
if getPlayerItemCount(cid,2400) > 0 then
doTeleportThing(cid,{x=33052, y=32779, z=14})
doSendMagicEffect(getPlayerPosition(cid), 10)
else
doTeleportThing(cid, fromPosition)
doSendMagicEffect(fromPosition, 10)
end
[COLOR="Red"][B]return 1[/B][/COLOR]
end
Code:
function onStepIn(cid, item, position)
if isPlayer(cid) == TRUE then
if getPlayerItemCount(cid,2488) > 0 then
setPlayerStorageValue(cid,62193,1)
end
end
[COLOR="Red"][B]return true[/B][/COLOR]
end
thanks in advance