Hello.
I have problem with exhaustion functions...
This is my testScript.lua:
And when I use the item, I see:
Please, tell me what is bad in my script!
I have problem with exhaustion functions...
This is my testScript.lua:
Code:
function check(cid)
doPlayerSendTextMessage(cid, 22, exhaustion.check(cid, 12345) and "Not exhausted." or "Exhausted!")
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
exhaustion.set(cid, 12345, 3500)
for i = 1, 4 do
addEvent(check, i*1000, cid)
end
end
And when I use the item, I see:
22:27 Not exhausted!
22:27 Not exhausted!
22:27 Not exhausted!
22:27 Not exhausted!
Please, tell me what is bad in my script!
Last edited: