Posts: 368
Threads: 21
Joined: Jan 2014
Quote:
Originally Posted by SilentSoul
%s is used for strings like (UnkownGamer) , you want to receive integers ( 1,2,3,) so you should use %d
pawn Код:
CMD:mystats(playerid, params[]) { new string[128]; //also here you used big string cell , and this string shouldn't exceed 128 letters format(string, sizeof(string), "Admin Level: %d \nVIP: %d \nMoney: %d \nScores: %d \nKills: %d \nDeaths: %d", pInfo[playerid][Adminlevel],pInfo[playerid][VIPlevel], pInfo[playerid][Money],pInfo[playerid][Scores],pInfo[playerid][Kills],pInfo[playerid][Deaths]); SendClientMessage(playerid, -1, string); return 1; }
Take a look here : https://sampwiki.blast.hk/wiki/Format
Also you used \n it won't switch to new line because it only works on dialogs not ClientMessages!
|
My bad XD It worked thx!