01.12.2012, 07:55
pawn Код:
new tstring[200];
new string[MAX_STRING];
strcat(string,""embed_blue"« "embed_white"General Player Status\n");
format(tstring,200,""embed_blue"« "embed_white"Name: "embed_blue"%s\n",pName[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Money: "embed_blue"%d\n",pInfo[playerid][pMoney]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"XP: "embed_blue"%d\n",pInfo[playerid][pXP]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Kills: "embed_blue"%d\n",pInfo[playerid][pKills]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Deaths: "embed_blue"%d\n",pInfo[playerid][pDeaths]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Score: "embed_blue"%d\n",pInfo[playerid][pScore]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Weapon Status\n");
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Primary Weapon Level: "embed_blue"%d\n",PrimaryWeaponLevel[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Secondary Weapon Level: "embed_blue"%d\n",SecondaryWeaponLevel[playerid]);
strcat(string,tstring);
format(tstring,200,""embed_blue"« "embed_white"Tertiary Weapon Level: "embed_blue"%d",ThirdaryWeaponLevel[playerid]);
strcat(string,tstring);
ShowPlayerDialog(playerid,1111,DIALOG_STYLE_MSGBOX,""embed_white"Stats",string,"Back","Cancel");