18.03.2013, 15:15
Strings _have to_ be surrounded by quotes. That's why you should use mysql_format / mysql_real_escape_string.
pawn Код:
//Not like this
format(query,sizeof(query),"SELECT * FROM `players` WHERE `Name`=%s",name(playerid));
//More like this
mysql_format(connection, query, "SELECT * FROM `players` WHERE Name = '%e'", name(playerid));