Help with dialog...
#1

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 ?
Reply
#2

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

thanks man
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)