Help with 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: Help with dialog... (
/showthread.php?tid=173364)
Help with dialog... -
martynas - 02.09.2010
Hi,
I want to create dialog box which will ask if you really want to buy a car wich costs bla bla?
So i'm doing this :
ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX ,"SAMP","Car: %s\r\n Costs: %i LT",Buylist[typ][Name],Buylist[typ][Price],"Buy","Thanks no");
but i know that i wrote wrong code so anyone knows how to write a correct code ?
Re: Help with dialog... -
mrcoolballs - 02.09.2010
pawn Код:
new string[128];
format(string,sizeof(string),"Car: %s\r\n Costs: %i LT",Buylist[typ][Name],Buylist[typ][Price]);
ShowPlayerDialog(playerid,1234,DIALOG_STYLE_MSGBOX ,"SAMP",string,"Buy","Thanks no");
untested but it should work
Re: Help with dialog... -
martynas - 02.09.2010
thanks man