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

TalkAction /save

Colandus

Advanced OT User
Senator
Joined
Jun 6, 2007
Messages
2,434
Solutions
19
Reaction score
219
Location
Sweden
Ok great ;)

and a /save command:
PHP:
function onSay(cid)
    if (getPlayerGroupId(cid) >= 3) then
        saveData()
        doPlayerSendTextMessage(cid, 24, "Server saved.")
    else
        doPlayerSendCancel(cid, "You can not execute this command.")
    end
    return 1
end
l0ol :p
 
PHP:
function onSay(cid) 
    if (getPlayerGroupId(cid) >= 3) then 
        saveData() 
        doPlayerSendTextMessage(cid, 24, "Server saved.")
        broadcastMessage("Server save completed!", 19)
    else 
        doPlayerSendCancel(cid, "You can not execute this command.") 
    end 
    return 1 
end
 
What server do you use? :p

Maybe it's because /save already exists in commands.xml?
 
I use this command for my server (tfs 0.2.11) - sqlite and sometimes it takes up to 30 mins to save, that is it freezes chronicly, sometimes it even shutdown and doesnt save
 
It works fucking awesome... now i finally can let people use the houses that wouldn't save with TFS before :D
 
Okay, great to hear!

Don't forget to leave me a reputation point ;)
 
Well, honestly I can't help you with that since it's not the script which occurs that error...
 
Back
Top