Dialog BOX
#1

PHP код:
YCMD:updates(playeridparams[], help) {
     
ShowPlayerDialog(playerid2DIALOG_STYLE_MSGBOX"{00BFFF}blalalla""{FFFFAA}blalalala""Okay""Cancel");
     
SendClientMessage(playerid0xB6681AFF"Have a suggestion? Share it with us on the forum: example.com");
    return 
1;

I want these 2 lines to show inside the dialog box.. and not as a client message, I got the above one but.. I want the second line inside the same dialog box instead of ClientMessage..
Reply
#2

PHP код:
YCMD:updates(playeridparams[], help) {
     
ShowPlayerDialog(playerid2DIALOG_STYLE_MSGBOX"{00BFFF}blalalla""{FFFFAA}blalalala \n Have a suggestion? Share it with us on the forum: example.com""Okay""Cancel");
    return 
1;

There
Reply
#3

You can also use strcat here
PHP код:
YCMD:updates(playeridparams[], help

     new 
help[256];
     
strcat(help"{FFFFAA}blalalala\nHave a suggestion? Share it with us on the forum: example.com");   
     
ShowPlayerDialog(playerid2DIALOG_STYLE_MSGBOX"{00BFFF}blalalla",help"Okay""Cancel"); 
     return 
1

Reply
#4

Quote:
Originally Posted by Debjit
Посмотреть сообщение
You can also use strcat here
PHP код:
YCMD:updates(playeridparams[], help

     new 
help[256];
     
strcat(help"{FFFFAA}blalalala\nHave a suggestion? Share it with us on the forum: example.com");   
     
ShowPlayerDialog(playerid2DIALOG_STYLE_MSGBOX"{00BFFF}blalalla",help"Okay""Cancel"); 
     return 
1

No need to increase the number of lines inside the command that's why I didn't tell him about strcat.
Reply
#5

Quote:
Originally Posted by JasonRiggs
Посмотреть сообщение
No need to increase the number of lines inside the command that's why I didn't tell him about strcat.
Chill, I just gave him another example of putting strings in dialog.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)