25.03.2015, 01:21
(
Последний раз редактировалось X337; 25.03.2015 в 02:55.
)
For /aka :
change :
to:
Don't forget to rescape string in SQL syntax.
and you didn't save the data on "GetInfoOfPlayer(playerid)" to a player variables.
You must save in player variable.
Example:
change :
Код:
mysql_format(mysql, query, sizeof(query), "SELECT Username FROM players WHERE IP = %s", IP[targetid]);
Код:
mysql_format(mysql, query, sizeof(query), "SELECT `Username` FROM players WHERE IP = '%s'", IP[targetid]);
and you didn't save the data on "GetInfoOfPlayer(playerid)" to a player variables.
Код:
cash = cache_get_field_content_int(row, "Cash", mysql);
Example:
Код:
PlayerInfo[playerid][cash] = cache_get_field_content_int(row, "Cash", mysql);