SA-MP Forums Archive
Login/Register System help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Login/Register System help (/showthread.php?tid=635668)



Login/Register System help - CTos - 11.06.2017

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;




Re: Login/Register System help - Whatname - 11.06.2017

Send only the error lines


Re: Login/Register System help - CTos - 11.06.2017

Sorry, Read again!


Re: Login/Register System help - Vince - 11.06.2017

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.


Re: Login/Register System help - CTos - 11.06.2017

Okay Thanks!
Fixed!