Eu recomendo que troque o distro, mas caso não queira fazê-lo, tente trocar seu script por este:
function onStartup()
return db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = ".. getConfigValue('worldId') ..";")
end
flw





info
Grupo: Campones
Registrado: 22/06/07
Posts: 39
Reputação: +2
é o seguinte galera eu nao sei se estou postando no luagr certo pois sou novo aqui e nao achei nenhuma sessão de bugs, espero q compreendão!
é o seguinte eu estava usando TFS 0.4 + descobri um bug mto osso que quando alguem guarda qual quer coisa contavel o server cai Oo
diante desse problema pesquizei mto e vi que nao tinha solução pois o problema esta na sourer e eu nao a tenho!
dae resolvi muda para o servervidor Snowz Thyranic 3.1 (8.6)
porem aparece o seguinte no console
Uploaded with ImageShack.us
MEU start.lua
function onStartup() db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";") return true endMEU history.lua
function onThink(interval, lastExecution) if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23456)) then setGlobalStorageValue(23456, (tonumber(os.date("%d")))) db.executeQuery("UPDATE `players` SET `onlinetime7`=players.onlinetime6, `onlinetime6`=players.onlinetime5, `onlinetime5`=players.onlinetime4, `onlinetime4`=players.onlinetime3, `onlinetime3`=players.onlinetime2, `onlinetime2`=players.onlinetime1, `onlinetime1`=players.onlinetimetoday, `onlinetimetoday`=0;") db.executeQuery("UPDATE `players` SET `exphist7`=players.exphist6, `exphist6`=players.exphist5, `exphist5`=players.exphist4, `exphist4`=players.exphist3, `exphist3`=players.exphist2, `exphist2`=players.exphist1, `exphist1`=players.experience-players.exphist_lastexp, `exphist_lastexp`=players.experience;") end db.executeQuery("UPDATE `players` SET `onlinetimetoday`=players.onlinetimetoday+60, `onlinetimeall`=players.onlinetimeall+60 WHERE `online` = 1;") return TRUE endalguem tem alguma ideia
Editado Setembro 21 por Xin