05.07.2013, 00:35
i have this :
but when i'm going to server the stats just right admin is level 1338 and cash score kills deaths everything just zero why ?
Код:
CMD:stats(playerid,params[]) { new Admin = PlayerInfo[playerid][pAdmin]; new Cash = PlayerInfo[playerid][pCash]; new Score = GetPlayerScore(playerid); new Kills = PlayerInfo[playerid][pKills]; new Deaths = PlayerInfo[playerid][pDeaths]; new str[128]; format(str,sizeof(str),"{00FF22}Admin: %d\n{00FF22}Cash: %d\n{00FF22}Score: %d\n{00FF22}Kills: %d\n{00FF22}Deaths: %d",Admin,Cash,Score,Kills,Deaths); ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your Account",str,"OK",""); return 1; }