/stats with dialog
#2

try this:

pawn Code:
#define DIALOG_STATS 32622//put this at the top
pawn Code:
new string2[200];
        format(string2, sizeof(string2),"» Name: %s • Level: %d • Faction: %s • Rank: %s\n",name,plevel,ttext,rtext);
        format(coordsstring, sizeof(coordsstring), "» Sex: %s • Age: %d • SpawnHealth: %.1f • Cash: %s • Bank: %s • NumberPhone: %d\n", atext, age, shealth+50, FormatMoney(cash), FormatMoney(account), pnumber);
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring), "» DonateRank: %s • PlayingHours: %d • Respect: %d/%d • NumberLotto: %d\n", drank,ptime,exp,expamount,lotto);
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring), "» TimesArrested: %d • WantedLevel: %d • MarriedTo: %s • Disease: %s\n", arrests,wanted,married,dtext);
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring), "» Kills: %d • Deaths: %d • NextLevel: %d$ • Job: %s\n",kills,deaths,costlevel,jtext);
        strcat(string2,coordsstring);
        format(coordsstring, sizeof(coordsstring), "» FishesCaught: %d • BiggestFish: %d • Drugs: %d • Materials: %d • Pills: %d • Warns: %d\n",fishes,bigfish,drugs,mats,pills,warns);
        strcat(string2,coordsstring);
        ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"player stats",string2,"close","");
Reply


Messages In This Thread
/stats with dialog - by lighteen - 22.05.2012, 17:20
Re: /stats with dialog - by MeDaKewlDude - 22.05.2012, 18:53
Re: /stats with dialog - by lighteen - 23.05.2012, 05:43
Re: /stats with dialog - by sampmark05 - 23.05.2012, 07:59

Forum Jump:


Users browsing this thread: 2 Guest(s)