Ir para conteúdo
  • 0

Erro Function onthink(interval)


julhinhuu

Pergunta

Boa noite pessoal <3

 

Gostaria que vocês me ajudassem em um erro, o script funciona apenas da erro no Executável.

 

Erro:

erro.png

 

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;")end

Obrigado desde já!

erro.png.dd83be3d4b6f3b0a519192cd4d50ff36.png

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

×
×
  • Criar Novo...