/stats DIALOG HELP!
#1

This is my /stats command

pawn Код:
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
        format(coordsstring, sizeof(coordsstring),"*** %s ***",name);
        SendClientMessage(playerid, COLOR_WHITE,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
        SendClientMessage(playerid, COLOR_GRAD1,coordsstring);
        format(coordsstring, sizeof(coordsstring), "DonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]", drank,married,ptime,lotto,jtext);
 SendClientMessage(playerid, COLOR_GRAD3,coordsstring);
        format(coordsstring, sizeof(coordsstring), "FishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]", fishes,bigfish,crimes,arrests,warrests );
 SendClientMessage(playerid, COLOR_GRAD4,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Kills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",kills,deaths,costlevel,exp,expamount,wanted,f2text);
 SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        format(coordsstring, sizeof(coordsstring), "Drugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",drugs,mats,ttext,dtext,ftext,rtext);
        SendClientMessage(playerid, COLOR_GRAD5,coordsstring);
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            format(coordsstring, sizeof(coordsstring), "House key [%d] Business key [%d] HireKey [%d] int:[%d] local[%d]", housekey,bizkey,HireCar[targetid],intir,local);
  SendClientMessage(playerid, COLOR_GRAD6,coordsstring);
        }
        SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
i wanna to make that whit dialog something like this.

http://slike.hr/slike/samp20100222220739_c3b0a.jpg.html

Please help me... TNX
Reply
#2

You need to use TextDraw bud.
Reply
#3

Can you help me please i wanna to learn that
Reply
#4

http://forum.sa-mp.com/index.php?topic=19613.0
Reply
#5

Quote:
Originally Posted by Pixels^
Nice, but i dont wanna to use textdraw i wanna DIALOG like this > http://slike.hr/slike/samp20100222220739_c3b0a.jpg.html <
Reply
#6

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#7

OMG i know -.- but i dont know how to put strings like my /stats command in dialog, idk so can you help me?
Reply
#8

pawn Код:
new coordsstring[1024];
        format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
        format(coordsstring, sizeof(coordsstring), "%sDonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]",coordsstring, drank,married,ptime,lotto,jtext);
        format(coordsstring, sizeof(coordsstring), "%sFishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]",coordsstring, fishes,bigfish,crimes,arrests,warrests );
        format(coordsstring, sizeof(coordsstring), "%sKills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",coordsstring,kills,deaths,costlevel,exp,expamount,wanted,f2text);
        format(coordsstring, sizeof(coordsstring), "%sDrugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",coordsstring,drugs,mats,ttext,dtext,ftext,rtext);
Reply
#9

Its ok, but can you fix this idk how to

http://slike.hr/slike/samp003_bbef8.png.html


i try this

pawn Код:
new coordsstring[1024];
        format(coordsstring, sizeof(coordsstring), "Level:[%d] Sex:[%s] Age:[%d] Origin:[%s] SpawnHealth:[%.1f] Cash:[$%d] Bank:[$%d] Ph:[%d]", level,atext,age,otext,shealth+50, cash, account, pnumber);
        format(coordsstring, sizeof(coordsstring), "\n%sDonateRank:[%s] MarriedTo:[%s] PlayingHours:[%d] LottoNr:[%d] Job:[%s]",coordsstring, drank,married,ptime,lotto,jtext);
        format(coordsstring, sizeof(coordsstring), "\n%sFishesCaught:[%d] BiggestFish:[%d] CrimesCommited:[%d] TimesArrested:[%d] WantedDeaths:[%d]",coordsstring, fishes,bigfish,crimes,arrests,warrests );
        format(coordsstring, sizeof(coordsstring), "\n%sKills:[%d] Deaths:[%d] NextLevel:[$%d] Respect:[%d/%d] WantedLevel:[%d] Family:[%s]",coordsstring,kills,deaths,costlevel,exp,expamount,wanted,f2text);
        format(coordsstring, sizeof(coordsstring), "\n%sDrugs:[%d] Materials:[%d] Team:[%s] Disease:[%s] Organisation:[%s] Rank:[%s]",coordsstring,drugs,mats,ttext,dtext,ftext,rtext);
        ShowPlayerDialog(playerid,6,DIALOG_STYLE_MSGBOX,"Ludi Grad Roleplay | STATISTIKA",coordsstring,"OK","");
Reply
#10

You need to add \n at the end of each line.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)