Aka help
#2

For /aka :
change :
Код:
mysql_format(mysql, query, sizeof(query), "SELECT Username FROM players WHERE IP = %s",  IP[targetid]);
to:
Код:
mysql_format(mysql, query, sizeof(query), "SELECT `Username` FROM players WHERE IP = '%s'",  IP[targetid]);
Don't forget to rescape string in SQL syntax.

and you didn't save the data on "GetInfoOfPlayer(playerid)" to a player variables.
Код:
cash = cache_get_field_content_int(row, "Cash", mysql);
You must save in player variable.
Example:
Код:
PlayerInfo[playerid][cash] = cache_get_field_content_int(row, "Cash", mysql);
Reply


Messages In This Thread
Aka help - by ReD_HunTeR - 24.03.2015, 19:55
Re: Aka help - by X337 - 25.03.2015, 01:21
Re: Aka help - by ReD_HunTeR - 25.03.2015, 12:38
Re: Aka help - by ReD_HunTeR - 25.03.2015, 17:29
Re: Aka help - by WaJeeH - 25.03.2015, 18:37
Re: Aka help - by ReD_HunTeR - 25.03.2015, 18:50
Re: Aka help - by ReD_HunTeR - 26.03.2015, 12:43
Re: Aka help - by ReD_HunTeR - 27.03.2015, 13:23
Re: Aka help - by Aly - 27.03.2015, 14:10
Re: Aka help - by ReD_HunTeR - 27.03.2015, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)