15.10.2013, 02:46
Hello someone helped me out make a stats command
but when i increase my score by robbing shops it dosent update the new score i get
Here is my code:
but when i increase my score by robbing shops it dosent update the new score i get
Here is my code:
pawn Код:
CMD:stats(playerid,params[])
{
new admin = pInfo[playerid][Adminlevel], //User's admin level
vip = pInfo[playerid][VIPlevel], //User's vip level
regularplayerlevel = pInfo[playerid][Regularlevel],
cash = GetPlayerMoney(playerid), //User's money
scores = pInfo[playerid][Scores],
crank = pInfo[playerid][Coprank],
kills = pInfo[playerid][Kills], //User's kills
deaths = pInfo[playerid][Deaths]; //User's deaths
new string[500];
format(string,sizeof(string),"Admin level: %i\nVip level: %i\nRegularPlayerLevel: %i\nCash: %d\nScores: %i\nCop rank: %i\nKills: %i\nDeaths: %i",admin,vip,regularplayerlevel,cash,scores,crank,kills,deaths);
ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your status",string,"Ok",""); // define the DIALOG_STATS on the top
return 1;
}