SA-MP Forums Archive
i need help to make this stats in dialog. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i need help to make this stats in dialog. (/showthread.php?tid=177162)



i need help to make this stats in dialog. - GBLTeam - 16.09.2010

Код:
new coordsstring[256];
  SendClientMessage(playerid, COLOR_RED," ");
  format(coordsstring, sizeof(coordsstring),"------------------------------------| %s |------------------------------------",name);
  SendClientMessage(playerid, COLOR_RED,coordsstring);
  format(coordsstring, sizeof(coordsstring), "- Level:[%d]  Sex:[%s]  Age:[%d]  Cash:[$%d]  Bank:[$%d]  Ph:[%d]", level,atext,age,cash,account,pnumber);
  SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  format(coordsstring, sizeof(coordsstring), "- PlayingHours:[%d]  Job:[%s]  Respect:[%d/%d]  DonateRank:[%s]", ptime,jtext,exp,expamount,drank);
  SendClientMessage(playerid, COLOR_WHITE,coordsstring);
  format(coordsstring, sizeof(coordsstring), "- Drugs:[%d]  Materials:[%d]  Organisation:[%s]  Rank:[%s]",drugs,mats,ftext,rtext);
  SendClientMessage(playerid, COLOR_WHITE,coordsstring);
I want my stats too look like this http://slike.hr/slike/samp20100222220739_c3b0a.jpg.html


Please help me to make this stats in Dialog. Thanks!


AW: i need help to make this stats in dialog. - Ribber - 16.09.2010

That is so easy..
I don't think that anybody will help you with this, instead of read & study that:
ShowPlayerDialog

use DIALOG_STYLE_MSGBOX .


Re: AW: i need help to make this stats in dialog. - GBLTeam - 16.09.2010

Quote:
Originally Posted by Ribber
Посмотреть сообщение
That is so easy..
I don't think that anybody will help you with this, instead of read & study that:
ShowPlayerDialog

use DIALOG_STYLE_MSGBOX .
So if is VERRY EASY.. Tell me what to add .
Becuase i dont know !


Re: i need help to make this stats in dialog. - Ironboy500[TW] - 16.09.2010

Код:
new string[256];
format(string, sizeof(string), "Kills [%d] Deaths [%d]...", PlayerInfo[playerid][Kills]); //change variables to your defined one
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Your Statistics", string, "Continue", "Cancel");
It is untested but should work. Don't forget to edit variables.