MYSQL Problem AMX.
#4

Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
Btw use this.
pawn Код:
public OnPlayerConnect(playerid)
{
    new data[100],string[500];
    format(data,sizeof(data),"SELECT * FROM `User` WHERE `Username` = '%s' LIMIT 1", playername(playerid));
    mysql_query(data);
    mysql_store_result();
    new rows = mysql_num_rows();
    if(rows == 1){
        format(string,sizeof(string),""CWHITE"This account is already Registred\n\nUser:"CRED"%s"CWHITE"\n\nPlese Enter Your Password Bellow To Login",playername(playerid));
        ShowPlayerDialog(playerid,D_LOGIN,PASSWORD,""CWHITE"RicaNiel - Login System",string,"Login","Cancel");
    }else{
        ShowPlayerDialog(playerid,D_REGISTER,INPUT,""CWHITE"RicaNiel - Register System","That account is not registred\n\nPlease Type a password to register an account","Login","Cancel");
    }
    mysql_free_result();
    return 1;
}
What is that?


Quote:

You need the MySQL plugin and you need to add a plugins line to server.cfg:

i already did but still same thing
Reply


Messages In This Thread
MYSQL Problem AMX. - by RicaNiel - 22.03.2012, 14:22
Re: MYSQL Problem AMX. - by SuperViper - 22.03.2012, 14:24
Re: MYSQL Problem AMX. - by Bogdan1992 - 22.03.2012, 14:30
Re: MYSQL Problem AMX. - by RicaNiel - 22.03.2012, 14:40
Re: MYSQL Problem AMX. - by Bogdan1992 - 22.03.2012, 14:49
Re: MYSQL Problem AMX. - by TheArcher - 22.03.2012, 14:49
Re: MYSQL Problem AMX. - by RicaNiel - 22.03.2012, 14:51
AW: MYSQL Problem AMX. - by Tigerkiller - 22.03.2012, 14:59
Re: MYSQL Problem AMX. - by RicaNiel - 22.03.2012, 15:08
Re: MYSQL Problem AMX. - by RicaNiel - 22.03.2012, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)