[HELP] MySQL R7 and Login...
#4

Quote:
Originally Posted by Calabresi
View Post
Try this:

pawn Code:
public CheckAccount(playerid, account[])
{
    new rows, fields;
    cache_get_data(rows, fields);
    if(rows)
    {
        SetPVarInt(playerid, "IsRegistered", 1); // Then we set PVar for players that are registered already
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD...);
    }
    return 1;
}
As Vince said, no need to use mysql_num_rows() in R7.
Thank you really much Vince and Calabresi. I Didn't know that you can just use "rows", but thank you for that information! Now the login dialog seems to work correctly.

Then this, what I'm wondering: When using "mysql_real_escape", is it same as "%e", escaped string?
Reply


Messages In This Thread
[SOLVED] MySQL R7 and login... - by CrossUSAAF - 13.05.2013, 11:15
Re: [HELP] MySQL R7 and Login... - by Vince - 13.05.2013, 13:00
Re: [HELP] MySQL R7 and Login... - by Calabresi - 13.05.2013, 13:05
Re: [HELP] MySQL R7 and Login... - by CrossUSAAF - 13.05.2013, 13:45
Re: [HELP] MySQL R7 and Login... - by Calabresi - 13.05.2013, 13:51
Re: [HELP] MySQL R7 and Login... - by CrossUSAAF - 13.05.2013, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)