• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Probielem z zapytaniem SQL

Status
Not open for further replies.

zduna

Banned User
Joined
May 3, 2010
Messages
201
Reaction score
0
UPDATE players SET resets = resets + 1
wrzucajac do bazy robi co trzeba


db.executeQuery(UPDATE players SET resets = resets + 1)

Jak to dodaje do skryptu na reborn to wyrzuca blad w tej linii

db.executeQuery(UPDATE 'players' 'SET' 'resets' '=' 'resets' + 1)

i wymusza takie wprowadzenie, ale nie podbija resets po wykonaniu skryptu. Po zrobieniu /relad talkactions nie wyrzuca zadnego bledu


[9:14:41.226] [Error - TalkAction Interface]
[9:14:41.226] data/talkactions/scripts/reset.lua:onSay
[9:14:41.226] Description:
[9:14:41.226] data/talkactions/scripts/reset.lua:48: attempt to call global 'UPDATE' (a nil value)
[9:14:41.226] stack traceback:
[9:14:41.226] data/talkactions/scripts/reset.lua:48: in function <data/talkactions/scripts/reset.lua:1>

A po uzyciu skryptu taki blad
 
Radzę nie pisać skryptów, jak się nie ma o nich pojęcia. Lepiej płacić i mieć dobrze, niż samemu pisać i sknocić. A po tym u góry, to jakoś nie wierze że znam się na tym. Ale to taka moja dobra rada.

LUA:
db.executeQuery("UPDATE `players` SET `resets` = `resets` + 1;")
 
Status
Not open for further replies.
Back
Top