SA-MP Forums Archive
Urgent help , easy peasy problem. I rep - 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)
+--- Thread: Urgent help , easy peasy problem. I rep (/showthread.php?tid=544805)



Urgent help , easy peasy problem. I rep - buburuzu19 - 04.11.2014

FIXED.


Re: Urgent help , easy peasy problem. I rep - Metroplex - 04.11.2014

Use format(string... instead, you can't format strings on the ShowPlayerDialog function.
pawn Код:
new string[128];
format(string, sizeof(string), "Points:",PlayerInfo[playerid][SpecialPoints]
ShowPlayerDialog(playerid, 34111, DIALOG_STYLE_LIST, "Title", string, "buy","exit");



Re: Urgent help , easy peasy problem. I rep - buburuzu19 - 04.11.2014

FIXED.


Re: Urgent help , easy peasy problem. I rep - Metroplex - 04.11.2014

new string[128];
format(string, sizeof(string), "Points:%d\nPremium shit - 60 premium points\nPremium shit1 - 69 premium points",PlayerInfo[playerid][SpecialPoints]);
ShowPlayerDialog(playerid, 34111, DIALOG_STYLE_LIST, "Title", string, "buy","exit");


Re: Urgent help , easy peasy problem. I rep - buburuzu19 - 04.11.2014

FIXED.


Re: Urgent help , easy peasy problem. I rep - Guest4390857394857 - 04.11.2014

Thats easy!
pawn Код:
new str[1024],boobs[256]; //main string
format(boobs,sizeof(boobs),"Premium Points: %d",yourvariable); //your dialog heading should be formated before.
strcat(str,"[+] Get Premium Points\n"); // our first thing.
//from second thing onwards use FORMAT & add it similarly like this with a new string.
new tempstr[128];
format(tempstr,sizeof(tempstr),"Premium Account - %d premium points", yourvariable);
strcat(str,tempstr); // now add them to it!
//similarly add it again & again by using STRCAT & FORMAT. Hence your dialog is created.
 ShowPlayerDialog(playerid,34111,DIALOG_STYLE_LIST,boobs,str,"Buy", "Exit");



Re: Urgent help , easy peasy problem. I rep - buburuzu19 - 04.11.2014

THANKS ! THAT'S WHAT I AM TALKING ABOUT ! REP ! +
GOD BLESS YOU!