Register / login
#1

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
Reply
#2

I don't have any errors
Reply
#3

MySQL_Debug.txt?
Reply
#4

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

bump
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)