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

start.lua error (with pics)

calum69

New Member
Joined
Aug 12, 2007
Messages
346
Reaction score
3
Location
Great Britain
this error comes up when starting the server

9iuw5h.png


Code:
function onStartup()
	db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getConfigValue('worldId') .. ";")
	return true
end


Code:
<globalevent name="serverstart" type="start" event="script" value="start.lua"/>
 
try and run the query itself in the database if it worked then idk else mysql will say the error and that is it end
 
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'db.executeQuery("UPDATE `players` SET `online` = 0 WHERE `world_id` = " .. getCo' at line 1
 
SQL query:

< - put ur world id

MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<- put ur world id' at line 1


i havent changed the world id
 
Back
Top