Problem with Login/Register
#1

I basically copy and pasted Kush's work, and I am getting these errors..:

(181) : error 001: expected token: "-string end-", but found "-identifier-"
(181) : warning 215: expression has no effect
(181) : error 001: expected token: ";", but found "-string-"
(181) : warning 215: expression has no effect
(181) : error 001: expected token: "-string end-", but found "-identifier-"
(181) : fatal error 107: too many error messages on one line

My line is:
Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_LIGHTGREEN"Login",""COLOR_LIGHTGREEN"Type your password below to login.","Login","Quit");
Can anyone help me?

Edit:
This might be more helpful:
Код:
 public OnPlayerConnect(playerid)
{
	if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COLOR_LIGHTGREEN"Login",""COLOR_LIGHTGREEN"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COLOR_LIGHTGREEN"Registering...",""COLOR_LIGHTGREEN"Type your password below to register a new account.","Register","Quit");
    }
	SetPlayerPos(playerid, 2493.159, -1687.038, 13.51347);
    return 1;
}
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FF0000}SERVER NAME","{FFFFFF}Welcome back to the server! \n Type your password below to login.","Login","Quit");
Reply
#3

Quote:
Originally Posted by Vanter
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FF0000}SERVER NAME","{FFFFFF}Welcome back to the server! \n Type your password below to login.","Login","Quit");
This accomplished nothing. Thank you for trying at least.
Reply
#4

This is from my server and the whole script runs perfectly with not even a warning,
pawn Код:
if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"{FF0000}SERVER NAME","{FFFFFF}Welcome back to the server! \n Type your password below to login.","Login","Quit");
    }
    else
    {
        //RULES DIALOG
    }
Sorry if I couldn't hellp

Note: it has something to do with colors
Reply
#5

If you remove "COLOR_LIGHTGREEN", does it work okay?
Reply
#6

show us your color definitions, they must be line
pawn Код:
#define COLOR_RED "{FF0000}"
That's the problem , if you see in my script I used "{FF0000}", so define the colors that way

Quote:
Originally Posted by Blessed
Посмотреть сообщение
This accomplished nothing. Thank you for trying at least.
at least try it before posting a reply please.
Reply
#7

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
If you remove "COLOR_LIGHTGREEN", does it work okay?
No, same error.
Код:
 		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
Reply
#8

Try this.
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""#COLOR_LIGHTGREEN"Login",""#COLOR_LIGHTGREEN"Type your password below to login.","Login","Quit");
ONLY TRY THIS if you have defined your colors well. (As above)
Reply
#9

Quote:
Originally Posted by Vanter
Посмотреть сообщение
show us your color definitions, they must be line
pawn Код:
#define COLOR_RED "{FF0000}"
That's the problem , if you see in my script I used "{FF0000}", so define the colors that way


at least try it before posting a reply please.
Код:
 #define COLOR_LIGHTGREEN      {0x9ACD32AA}
Same errors.
Reply
#10

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Try this.
pawn Код:
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""#COLOR_LIGHTGREEN"Login",""#COLOR_LIGHTGREEN"Type your password below to login.","Login","Quit");
ONLY TRY THIS if you have defined your colors well. (As above)
26 errors. 0.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)