freaked1
Active Member
Hello! This might not be the right place and there might be information about this but I don't find it.
What is the purpose of return true/false and is it needed for example to allow me to even click the thing in my code:
What is the purpose of return true/false and is it needed for example to allow me to even click the thing in my code:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, 35161) <= 0) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "true or false.")
setPlayerStorageValue(cid, 35161, 1)
elseif(getPlayerStorageValue(cid, 35161) >= 0 and getPlayerItemCount(cid, 00000) < 10) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "false or true")
elseif(getPlayerStorageValue(cid, 35161) >= 0 and getPlayerItemCount(cid, 0000) >= 10) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "true or false")
setPlayerStorageValue(cid, 35155, 1)
end
return true
end