31.08.2013, 23:37
This is my final stuff
Keeps saying "Unknown command"
Код:
CMD:stats(playerid, params[]) { new money = PlayerInfo[playerid][pMoney]; new score = PlayerInfo[playerid][pScores]; new admin = PlayerInfo[playerid][pAdminLevel]; new vip = PlayerInfo[playerid][pVIPlevel]; new kills = PlayerInfo[playerid][pKills]; new Deaths = PlayerInfo[playerid][pDeaths]; new Kicks = PlayerInfo[playerid][pKicks]; new Warns = PlayerInfo[playerid][pWarns]; new Achievements = PlayerInfo[playerid][pAchievementPoints]; new string[128], string2[128],string3[128],string4[128], finalstring[800]; format(string,sizeof(string), "{0099FF}Money: %d\nLevel: %d", money,score); strins(finalstring, string,0,sizeof(string)); format(string,sizeof(string), "{00AAFF}%s\nAdmin: %d\nVIP: %d\n", string, admin, vip); strins(finalstring, string,sizeof(string)+1,sizeof(string2)); format(string2,sizeof(string2), "{00AAFF}%s\nKills: %d\nDeaths: %d\n", string, kills, Deaths); strins(finalstring, string,sizeof(string)+1,sizeof(string2)); format(string3,sizeof(string3), "{00AAFF}%s\nKicks: %d\nWarns: %d\n", Kicks, Warns); strins(finalstring, string,sizeof(string)+1,sizeof(string3)); format(string4,sizeof(string4), "{00AAFF}%s\nAchievement Points: %d \n", Achievements); strins(finalstring, string,sizeof(string2)+1,sizeof(string4)); ShowPlayerDialog(playerid, D_STATS, DIALOG_STYLE_MSGBOX, "Your stats", finalstring, "Close", ""); return 1; }