Hey, I have this function:
and in main function:
but I think that I have to type name of player in addEvent(and in function zero), how can I do that?
Code:
function zero()
if getCreatureStorage(cid, storage) > 0 then
doCreatureSetStorage(cid, storage, 0)
end
end
and in main function:
Code:
addEvent(zero, 10 * 1000)
but I think that I have to type name of player in addEvent(and in function zero), how can I do that?