Já tentou executar essas Query manualmente?
- Forums
- OTServ
- Suporte
- Resolvidos
- Erro Function onthink(interval)
3
2k
info
Group: Cavaleiro
Joined: 22/03/17
Posts: 166
Reputation: +2
Gender: Masculino

24 de abril de 2017 às 21:17
info
Group: Visconde
Joined: 28/06/11
Posts: 356
Reputation: +26
Tibia Character: Akor Rysea

24 de abril de 2017 às 21:19
Best answer
Concertei, obrigado.
Pode fechar o tópico, era apenas um erro simples.
Desculpa incomodar a todos com uma falta de atenção minha.
<3


info
Group: Visconde
Joined: 28/06/11
Posts: 356
Reputation: +26
Tibia Character: Akor Rysea
Boa noite pessoal <3
Gostaria que vocês me ajudassem em um erro, o script funciona apenas da erro no Executável.
Erro:
Script:
function onThink() if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23456)) then setGlobalStorageValue(23456, (tonumber(os.date("%d")))) db.executeQuery("UPDATE `players` SET `onlinetime7`=`onlinetime6`, `onlinetime6`=`onlinetime5`, `onlinetime5`=`onlinetime4`, `onlinetime4`=`onlinetime3`, `onlinetime3`=`onlinetime2`, `onlinetime2`=`onlinetime1`, `onlinetime1`=`onlinetimetoday`, `onlinetimetoday`=0;") db.executeQuery("UPDATE `players` SET `exphist7`=`exphist6`, `exphist6`=`exphist5`, `exphist5`=`exphist4`, `exphist4`=`exphist3`, `exphist3`=`exphist2`, `exphist2`=`exphist1`, `exphist1`=`experience`-`exphist_lastexp`, `exphist_lastexp`=`experience`;") end db.executeQuery("UPDATE `players` SET `onlinetimetoday`=`onlinetimetoday`+60, `onlinetimeall`=`onlinetimeall`+60 WHERE `online` = 1;")endObrigado desde já!