SA-MP Forums Archive
/stats DIALOG HELP! - 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: /stats DIALOG HELP! (/showthread.php?tid=144747)



/stats DIALOG HELP! - DarkPower - 28.04.2010

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


Re: /stats DIALOG HELP! - Pixels^ - 28.04.2010

You need to use TextDraw bud.


Re: /stats DIALOG HELP! - DarkPower - 28.04.2010

Can you help me please i wanna to learn that


Re: /stats DIALOG HELP! - Pixels^ - 28.04.2010

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


Re: /stats DIALOG HELP! - DarkPower - 29.04.2010

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 <


Re: /stats DIALOG HELP! - MadeMan - 29.04.2010

https://sampwiki.blast.hk/wiki/ShowPlayerDialog



Re: /stats DIALOG HELP! - DarkPower - 29.04.2010

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


Re: /stats DIALOG HELP! - MadeMan - 29.04.2010

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);



Re: /stats DIALOG HELP! - DarkPower - 29.04.2010

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","");



Re: /stats DIALOG HELP! - MadeMan - 29.04.2010

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