-string- and -identifier-
#1

hi guys
I get an error compiling my script on line 100
Код:
error 001: expected token: "-string end-", but found "-identifier-"
PHP код:
{
    if(
fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    return 
1;

What is wronggg?
Reply
#2

COL_WHITE is defined as an integer when it should be string.

pawn Код:
#define COL_WHITE "{FFFFFF}"
but you CANNOT use those as color (2nd parameter) in client messages etc.
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
COL_WHITE is defined as an integer when it should be string.

pawn Код:
#define COL_WHITE "{FFFFFF}"
but you CANNOT use those as color (2nd parameter) in client messages etc.
Omg ty xd
I didnt know
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)