Dialog stats
#5

pawn Код:
// create some vars
new x, y;
// setting their values
x = 4;
y = 8;
// declaring a string to hold these vars
new str[16];
// formating it
format(str, sizeof(str), "x: %d\ny: %d", x, y); // adding the vars into the string. \n creates a new line
// Output:
// x: 4
// y: 8
// -------
// Now you can use the string that you formatted in your dialog
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Dialog", str, "Ok", "");
Reply


Messages In This Thread
Dialog stats - by TaLhA XIV - 26.07.2012, 22:42
Re: Dialog stats - by [KHK]Khalid - 26.07.2012, 22:51
Re: Dialog stats - by maramizo - 26.07.2012, 23:07
Re: Dialog stats - by TaLhA XIV - 26.07.2012, 23:18
Re: Dialog stats - by [KHK]Khalid - 26.07.2012, 23:32
Re: Dialog stats - by Devilxz97 - 26.07.2012, 23:54

Forum Jump:


Users browsing this thread: 1 Guest(s)