05.12.2014, 19:57
Wired... It works but when i do /stats in-game it shows up with on Credits, I can not see where i've gone wrong
pawn Код:
CMD:stats(playerid, params[])
{
new sstr[300], sstr1[1000];
format(sstr, sizeof(sstr), "Money %d", GetPlayerCash(playerid));
strcat(sstr1, sstr);
format(sstr, sizeof(sstr), "Kills %d", pInfo[playerid][Kills]);
strcat(sstr1, sstr);
format(sstr, sizeof(sstr), "Deaths %d", pInfo[playerid][Deaths]);
strcat(sstr1, sstr);
format(sstr, sizeof(sstr), "Credits %d", pInfo[playerid][Credits]);
strcat(sstr1, sstr);
SPD(playerid, stats, DIALOG_STYLE_MSGBOX, "Stats", sstr , "Close","");
return 1;
}