SA-MP Forums Archive
Register / login - 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: Register / login (/showthread.php?tid=490958)



Register / login - BuggedPlayer - 28.01.2014

So, when any player connected dialogs don't show.

This is my OnPlayerConnect:
pawn Код:
new Query[80];
    new pName[24];
    new string[164];
    GetPlayerName(playerid, pName, 24);
    format(Query, sizeof(Query), "SELECT `Username` from `conturi` WHERE `Username` = '%s' LIMIT1", pName);
    mysql_query(Query);
    mysql_store_result();
    if(mysql_num_rows() == 1)
    {
        format(string, sizeof(string), "Welcome back, %s!\nPlease enter your password to login in!", pName);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", string, "Login", "Cancel");
    }
    if(mysql_num_rows() == 0)
    {
        format(string, sizeof(string), "Welcome to the server, %s!\nPlease enter your paassword to register!", pName);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Register", string, "Register", "Cancel");
    }
I use MySQL plugin R6


Re: Register / login - BuggedPlayer - 28.01.2014

I don't have any errors


Re: Register / login - Brandon_More - 28.01.2014

MySQL_Debug.txt?


Re: Register / login - BuggedPlayer - 28.01.2014

I don't have this.
Now even if the account dosen't exist the server show dialog login!


Re: Register / login - BuggedPlayer - 28.01.2014

bump


Re: Register / login - BuggedPlayer - 29.01.2014

bump