Error on the dialog
#1

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 027invalid character constant
...gamemode.pwn(3863) : error 027invalid character constant
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Errors

Thanks in advance

Best regards,
George
Reply
#2

\n\n. You should provide a space after n, i.e. \n \n.
Reply
#3

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");
Reply
#4

I would like to thank both of you,I really appreciate your help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)