SA-MP Forums Archive
reputation - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: reputation (/showthread.php?tid=112796)



reputation - armyoftwo - 10.12.2009

: 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?


Re: reputation - Correlli - 10.12.2009

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".


Re: reputation - armyoftwo - 10.12.2009

Код:
		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


Re: reputation - armyoftwo - 10.12.2009

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.


Re: reputation - armyoftwo - 10.12.2009

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