08.01.2015, 13:11
You have queries in which you have a %s specifier, but you don't supply any variable after your query to replace the %s with.
Like this:
The %s must be replaced by some value stored in a variable, but after the query, you don't specify a variable that contains the data, which should be inserted where the %s is located.
This would be correct:
As the player's name would be stored in the "Name" variable and will be inserted at the location of the %s.
Like this:
pawn Код:
mysql_format(SQL_db, Query, sizeof(Query), "SELECT * FROM playerdata WHERE PlayerName = '%s'");
This would be correct:
pawn Код:
new Name[24];
GetPlayerName(playerid, Name, sizeof(Name));
mysql_format(SQL_db, Query, sizeof(Query), "SELECT * FROM playerdata WHERE PlayerName = '%s'", Name);