Problem with Login/Register -
Blessed - 23.07.2013
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;
}
Re: Problem with Login/Register -
Vanter - 23.07.2013
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");
Re: Problem with Login/Register -
Blessed - 23.07.2013
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.
Re: Problem with Login/Register -
Vanter - 23.07.2013
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
Re: Problem with Login/Register -
Scenario - 23.07.2013
If you remove "COLOR_LIGHTGREEN", does it work okay?
Re: Problem with Login/Register -
Vanter - 23.07.2013
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.
Re: Problem with Login/Register -
Blessed - 23.07.2013
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");
Re: Problem with Login/Register -
RajatPawar - 23.07.2013
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)
Re: Problem with Login/Register -
Blessed - 23.07.2013
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.
Re: Problem with Login/Register -
Blessed - 23.07.2013
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