i need help to make this stats in dialog.
#1

Код:
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!
Reply
#2

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 .
Reply
#3

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 !
Reply
#4

Код:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)