show string value in dialog_style_msgbox
#1

okay so im trying to show what is the string value using dialogs how can i do it ?
Reply
#2

You want a variable printing into a dialog?

Код:
new string[128];

format(string, sizeof(string), "This is a message test for the dialog string. \n\rPlease say abracadabra after me.");

ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Important Message", string, "Close", "");
Reply
#3

i will give you a example
i create a new string: new moneyjob[MAX_PLAYERS];
and add 50 to it: moneyjob[playerid] += 50;
and i want to check whats the value when i add 50 to it
Reply
#4

pawn Код:
new string[128];

format(string, sizeof(string), "This is a message test for the dialog string. \n\rYour money is %d.", moneyjob[playerid]);

ShowPlayerDialog(playerid, DIALOG_WELCOME, DIALOG_STYLE_MSGBOX, "Important Message", string, "Close", "");
For more information on how to use format, please refer to the SA:MP Wiki
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)