Yea how do i make my website update faster. Like the who is online, and the sign that says how many people are online. I would like to make that update as fast as possible, right away when someone logs in preferrably. Please help xd
function onSay(cid, words, param, channel)
doPlayerSave(cid)
end
local config = {
broadcast = {120, 30},
shallow = "no",
delay = 120,
events = 30
}
config.shallow = getBooleanFromString(config.shallow)
local function executeSave(seconds)
if(isInArray(config.broadcast, seconds)) then
local text = ""
if(not config.shallow) then
text = "Full s"
else
text = "S"
end
text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
doBroadcastMessage(text)
end
if(seconds > 0) then
addEvent(executeSave, config.events * 1000, seconds - config.events)
else
doSaveServer(config.shallow)
end
end
function onThink(interval, lastExecution, thinkInterval)
if(table.maxn(config.broadcast) == 0) then
doSaveServer(config.shallow)
else
executeSave(config.delay)
end
return true
end
codes instead of [php][/FONT]
Lol xD! That's lua script not php. Use
LUA:codes instead of [php][/FONT][/QUOTE] D= I like php codes their all colorful =(
Same as lua. You wrong again! UseD= I like php codes their all colorful =(
[/luaa], not [code]xD..[/FONT]