PDA

View Full Version : Login/Register System help


CTos
11/06/2017, 09:19 PM
Error:

(237) : error 001: expected token: "-string end-", but found "-identifier-"
(237) : warning 215: expression has no effect
(237) : warning 215: expression has no effect
(237) : error 029: invalid expression, assumed zero
(237) : error 017: undefined symbol "bExtra"
(237) : fatal error 107: too many error messages on one line


Line
public OnPlayerConnect(playerid)
{
if(fexist(Users(playerid)))
{
(237) 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 below to login.","Login","Quit");
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
}
return 1;
}

Whatname
11/06/2017, 09:31 PM
Send only the error lines

CTos
11/06/2017, 09:36 PM
Sorry, Read again!

Vince
11/06/2017, 09:37 PM
Oh for god's sake, stop using udb_hash for password security. Proper hashing algorithms are devised by agencies like the NSA (seriously) so a 10-line implementation of a simple checksum (not even a hashing algorithm) isn't going to cut it. And if you're going to follow a tutorial at least find a RECENT one. Like from the past year if possible.

CTos
11/06/2017, 10:03 PM
Okay Thanks!
Fixed!