reputation
#1

: warning 202: number of arguments does not match definition

Код:
    if(strcmp("/stats", cmd, true) == 0){
    SendClientMessage(playerid, green, "Reputation[%b]",PlayerInfo[playerid][reputation]);
    return 1;
		}
wtf?
Reply
#2

You need to format the message before you can send it with the SA:MP message-function or just search for macro-function like "SendFormattedMessage".
Reply
#3

Код:
		if(strcmp("/stats", cmd, true) == 0){
		new str[256];
    format(str, sizeof(str), "Reputation[%d]", PlayerInfo[playerid][reputation]);
		SendClientMessage(playerid, COLOR_YELLOW, str);
		return 1;
		}
Tried that but it showed 0
Reply
#4

Quote:
Originally Posted by Seif_
Then either your reputation is 0, or this variable is a string. In that case, you'd use %s.
I tried it it showed reputation[(nothing here)] and i have set in the file that i have 5000 reputation.
Reply
#5

Thanks, I did moved stats saving system from Dini to Dudb and now its working fine.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)