SA-MP Forums Archive
Login and Register problem - 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 and Register problem (/showthread.php?tid=462022)



Login and Register problem - BoU3A - 04.09.2013

PHP код:
    if(fexist(UserPath(playerid)));
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
        
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_ROZZ"Enter please your password to login to your account.","Login","Close");
    }
    else
    {
      
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_ROZZ"Enter please your password to register a game account.","Register","Close");
    }
    return 
1;

PHP код:
C:\Users\John\samp03x_svr_R1-2_win32\pawno\include\sscanf2.inc(227) : error 017undefined symbol "SSCANF_OnPlayerDisconnect"
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(181) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(181) : warning 215expression has no effect
C
:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(181) : error 001expected token";"but found ")"
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(181) : error 029invalid expressionassumed zero
C
:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(181) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors




Re: Login and Register problem - BoU3A - 04.09.2013

help please


Re: Login and Register problem - Dragonsaurus - 04.09.2013

You had an extra semicolon, try this:
pawn Код:
if(fexist(UserPath(playerid)))



Re: Login and Register problem - BoU3A - 04.09.2013

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
You had an extra semicolon, try this:
pawn Код:
if(fexist(UserPath(playerid)))
didnt work bro


Re: Login and Register problem - Dragonsaurus - 04.09.2013

Which line is 181?


Re: Login and Register problem - BoU3A - 04.09.2013

this if(fexist(UserPath(playerid)))