26.07.2012, 23:32
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", "");