Login/Register System help
#1

Error:
PHP код:
(237) : error 001expected token"-string end-"but found "-identifier-"
(237) : warning 215expression has no effect
(237) : warning 215expression has no effect
(237) : error 029invalid expressionassumed zero
(237) : error 017undefined symbol "bExtra"
(237) : fatal error 107too many error messages on one line 
Line
PHP код:
public OnPlayerConnect(playerid)
{
    if(
fexist(Users(playerid)))
    {
(
237)         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;

Reply
#2

Send only the error lines
Reply
#3

Sorry, Read again!
Reply
#4

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.
Reply
#5

Okay Thanks!
Fixed!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)