Aka help
#1

solved :/
Reply
#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
#3

bump,
1. changed
2. that cmd is used to check offline player stats -_-, not for Giving Player his old stats
Reply
#4

Bump,

the one is fixed,
need to fix second one, "cant see player stats" it's just showing "NULL" and "0"
Reply
#5

Dude,check outt the script
maybe it's "return 0" but it should be return 1
I hope it will work.
Reply
#6

where can u see "return 0" ?
Reply
#7

bump
Reply
#8

bump
Reply
#9

Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `Username` = '%s' LIMIT 1", name); 
    mysql_tquery(mysql, query, "GetInfoOfPlayer", "d", playerid);
Reply
#10

oh i got it myself -_-, topic locked, solved :3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)