I've made a simple stats command it all seems to work fine but kills,deaths wont add ?
Code:
CMD:stats(playerid, params[])
{
if(connected[playerid] == true) return GameTextForPlayer(playerid, "~r~Spawn First", 5000, 5);
new string[500],name[MAX_PLAYER_NAME], stats[1028];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{4286f4}Name{FFFFFF}: %s\n{4286f4}Admin Level{FFFFFF}: %i\n{4286f4}Score{FFFFFF}: %i\n{4286f4}Kills{FFFFFF}: %i\n{4286f4}Deaths{FFFFFF}: %i\n{4286f4}Points{FFFFFF}: %i",name, pInfo[playerid][Admin], pInfo[playerid][Score], pInfo[playerid][Kills], pInfo[playerid][Deaths], pInfo[playerid][Points]);
format(stats, sizeof stats, "%s", string);
ShowPlayerDialog(playerid, 55, DIALOG_STYLE_MSGBOX, "Stats",stats,"Ok","");
return 1;
}