SA-MP Forums Archive
Dialog BOX - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog BOX (/showthread.php?tid=641317)



Dialog BOX - Puff - 14.09.2017

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..


Re: Dialog BOX - JasonRiggs - 14.09.2017

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


Re: Dialog BOX - Zeth - 14.09.2017

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




Re: Dialog BOX - JasonRiggs - 14.09.2017

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.


Re: Dialog BOX - Zeth - 14.09.2017

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.