• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Return TRUE / Return FALSE / Return 1

ligus

New Member
Joined
Apr 26, 2010
Messages
253
Reaction score
0
Hello, I have noob problem. Could someone explain me which return I should use in these scripts:
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
 
Back
Top