Dialog Center Include Help! - 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 Center Include Help! (
/showthread.php?tid=630092)
Dialog Center Include Help! -
Immortal99 - 08.03.2017
The second last line isn't in the center of the dialog its still staying on the left and I am using @Ivan_Ino's DialogCenter include for this
HERE it is.
Here is my command:
PHP код:
CMD:credits(playerid, params[])
{
new Credits[1024];
strcat(Credits, ""SERVER_HOSTNAME" : {FF0000}Server Information & Credits{FFFFFF}\n\n");
strcat(Credits, "\\cServer Owner(s):\n");
strcat(Credits, "\\c{FF0000}"SERVER_OWNER"{FFFFFF}\n\n");
strcat(Credits, "\\cServer Developer(s):\n");
strcat(Credits, "\\c {FF0000}"SERVER_DEV"{FFFFFF}\n\n");
strcat(Credits, "\\cServer Hoster(s):\n");
strcat(Credits, "\\c{FF0000}"SERVER_HOSTER"{FFFFFF}\n\n");
strcat(Credits, "\\cServer DJ(s):\n");
strcat(Credits, "\\c{FF0000}"SERVER_DJ"{FFFFFF}\n\n");
ShowPlayerDialog(playerid, DIALOG_SVCREDITS, DIALOG_STYLE_MSGBOX, ""SERVER_HOSTNAME" : {FF0000}Credits{FFFFFF}", Credits, "Okay", "");
return 1;
}
Any help would be appreciated!
Re: Dialog Center Include Help! -
Ivan_Ino - 17.04.2017
You must add space between new lines, so from
\n\n
To
\n \n