(119) : error 001: expected token: "-string end-", but found "-identifier-" (119) : error 029: invalid expression, assumed zero (119) : warning 215: expression has no effect (119) : warning 215: expression has no effect (119) : warning 215: expression has no effect (119) : error 001: expected token: ";", but found ")" (119) : fatal error 107: too many error messages on one line
else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...".""COL_WHITE"Please inset a password to register.","Register","Quit"); return 1; }
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...".""COL_WHITE"Please inset a password to register.","Register","Quit"); return 1; } return 1; }
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"{FFFFFF}Registering....Please inset a password to register.","Register","Quit");
I've re-written a register & login system, I literally re-wrote everything and I still receive error messages.
Now, after fixing all the previous errors on my previous thread I receive 3 errors + fatal error due to many errors in one line. Code:
(119) : error 001: expected token: "-string end-", but found "-identifier-" (119) : error 029: invalid expression, assumed zero (119) : warning 215: expression has no effect (119) : warning 215: expression has no effect (119) : warning 215: expression has no effect (119) : error 001: expected token: ";", but found ")" (119) : fatal error 107: too many error messages on one line Code:
else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...".""COL_WHITE"Please inset a password to register.","Register","Quit"); return 1; } Code:
public OnPlayerConnect(playerid) { if(fexist(UserPath(playerid))) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password to login.","Login","Quit"); } else { ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...".""COL_WHITE"Please inset a password to register.","Register","Quit"); return 1; } return 1; } |
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FFFFFF}Registering...\n\nPlease insert a password to register.", "Register", "Quit"); |
#define STRING_WHITE_COLOUR "{FFFFFF}" ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""STRING_WHITE_COLOUR"Registering...\n\nPlease insert a password to register.", "Register", "Quit"); |
#define COL_WHITE "{FFFFFF}"