• 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!

Windows db.executeQuery - init.lua [TFS 0.4]

Freeq132

Member
Joined
Feb 2, 2010
Messages
84
Reaction score
6
Location
Wrocław/Poland
When I turn my tfs 0.4 at the end of charging the engine pops up:

Code:
[13:1:05.572] [Error - GlobalEvent Interface]
[13:1:05.572] data/globalevents/scripts/init.lua:onStartup
[13:1:05.572] Description:
[13:1:05.573] data/globalevents/scripts/init.lua:79: attempt to call field 'executeQuery' (a nil value)
[13:1:05.573] stack traceback:
[13:1:05.573]   data/globalevents/scripts/init.lua:79: in function <data/globalevents/scripts/init.lua:8>

Line 79:

Code:
db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
 
Try this:
Code:
db.Query("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
 
Nothing...

consolej.png
 
It's problem with all db.executeQuery, but when i copy this line:

db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")

Under lines with the war system, then the same error pops up.
 
Back
Top