Error on the dialog - 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: Error on the dialog (
/showthread.php?tid=514459)
Error on the dialog -
geohareas - 21.05.2014
Hey there,ive got some errors while scripting a dialog,
PHP код:
else
{
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_MSGBOX,""COL_CYAN"Server",""COL_YELLOW"Welcome to StuntCity Ultimate!\n\n"COL_RED"Please ensure that you got our modification installed,\n\
otherwise you will not be able to stunt or see our specially designed vehicles!\n\(Visit www.stuntcity.cu.cc for more information)\n\n"COL_YELLOW"\n\n\To continue to the class selection,close the dialog box,and hit the (>>) button on the bottom of your screen."COL_RED,"","OK");
}
return 1;
}
Seriously,what I am doing wrong?
I get these errors:
PHP код:
...\gamemode.pwn(3863) : error 027: invalid character constant
...gamemode.pwn(3863) : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Thanks in advance
Best regards,
George
Re: Error on the dialog -
Faisal_khan - 21.05.2014
\n\n. You should provide a space after n, i.e. \n \n.
Re: Error on the dialog -
Konstantinos - 21.05.2014
Actually the problem is here: "\n\n\" - you don't need the last character "\".
pawn Код:
ShowPlayerDialog
(playerid,dregister,DIALOG_STYLE_MSGBOX,
""COL_CYAN
"Server",
""COL_YELLOW
"Welcome to StuntCity Ultimate!\n\n"COL_RED
"Please ensure that you got our modification installed,\n\
otherwise you will not be able to stunt or see our specially designed vehicles!\n(Visit http://www.stuntcity.cu.cc for more information)\n\n"COL_YELLOW
"\n\nTo continue to the class selection,close the dialog box,and hit the (>>) button on the bottom of your screen."COL_RED,
"",
"OK");
Re: Error on the dialog -
geohareas - 21.05.2014
I would like to thank both of you,I really appreciate your help!