Quote:
Originally Posted by BlackBomb
here you go
pawn Код:
CMD:stats(playerid, params[]) { new string[1024], holder[128]; format(string, sizeof(string), ""COL_LIGHTBLUE"GENERAL INFORMATION:\n"COL_WHITE"Character Level: %d\nExperience: %d\nCash: %d\nBank: %d\n",GetPlayerScore(playerid), PlayerInfo[playerid][pExp], GetPlayerMoney(playerid), PlayerInfo[playerid][pBank]); strcat(holder, string, sizeof(holder)); format(string, sizeof(string), ""COL_WHITE"Kills: %d\nDeaths: %d\nMaster Keys: %d\n\n"COL_LIGHTBLUE"GAME STATICS:\n"COL_WHITE"Caught Fishes: %d\nCut Trees: %d\n",PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pMkey], PlayerInfo[playerid][pFishtotal], PlayerInfo[playerid][pLogstotal]); strcat(holder, string, sizeof(holder)); ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX,"Personal Statistics", holder,"Close",""); return 1; }
|
This worked thanks!
I tried to use antislashes but appearently I did something wrong but somewhere on the new line where it said "playerid" it went reading it as "playe" "rid" and gave me errors over that.. Also I added Zeex's Compiler patch and when I started to compile it said "a_npc" or "a_samp" has to be included, while I had both of them included, so I reset it back to my backup.
It works now, thanks to both!