• 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!

Save.lua have errors, it doesnt save!

Axelor

Member
Joined
Sep 2, 2010
Messages
505
Reaction score
9
Error in console;
PHP:
[20:23:20.622] data/talkactions/scripts/save.lua:4: attempt to call global 'isNumber' (a nil value)
[20:23:20.622] stack traceback:
[20:23:20.622]  data/talkactions/scripts/save.lua:4: in function <data/talkactions/scripts/save.lua:2>


My save.lua in talkactions script
PHP:
-- [( Script edited by: DoidinMapper )] --
function onSay(cid, words, param, channel)
local saving = 0
if(isNumber(param)) then
stopEvent(saving)
save(tonumber(param) * 60 * 1000)
else
doSaveServer()
end
return true
end
function save(delay)
doSaveServer()
if(delay > 0) then
saving = addEvent(save, delay, delay)
end
end



rep+
 
Back
Top