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

Compiling SQL Syntax error on Nostalrius 7.7 (TFS 1.2) dist

loldinis

New Member
Joined
May 21, 2010
Messages
16
Reaction score
0
I just compiled nostalrius 7.7, imported the sql schema and opened the server locally.

But when I disconnect a character, he cannot save the progression, the error is this:

Lua:
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1



1607732300509.png



In advance, thanks for everyone who tried to help!
 
Look in the player.cpp file for player:Save or something like that. Look for the sql code and remove the: `s
Looks like that is the problem?
 
Look in the player.cpp file for player:Save or something like that. Look for the sql code and remove the: `s
Looks like that is the problem?


Lua:
`s
is soul, it does not fully show why the text is too long.

1607753539001.png


That's not the problem :(

Also, I didn't make any changes to the source, I just compiled
 
Solved!

In iologindata.cpp, the query that sets "sex" should be cast as uint16
Hello friend, I have the same error, after changing the line: query << " sex=" << player->sex << ',';
for this: query << " sex=" << static_cast<uint16_t>(player->sex) << ',';

do I need to do anything else?
 
Back
Top