Help with mysql
#6

you are not getting the data

try this

pawn Код:
public OnPlayerCheck(playerid) {
    new rows ,fields ,string[300];
    cache_get_data(rows, fields, mysql);//let's get the rows and fields from the database.
    if(rows) {
        cache_get_field_content(0, "Password", PlayerInfo[playerid][pPassword], mysql_handle, 129);
        PlayerInfo[playerid][pID] = cache_get_field_content_int(0, "ID");
        format(string, sizeof(string), "{FFFFFF}Welcome back {2098AE}%s {FFFFFF}!\nType your password below to login!\nYou have only {FF0000}5 {FFFFFF}attempts to type corect password.", GetPName(playerid));
        ShowPlayerDialog(playerid, DIALOG_LOGIN, 3, "{FFFF00}Loging in:", string, "Login", "Cancel");
    } else {
        format(string, sizeof(string), "{FFFFFF}Welcome {2098AE}%s {FFFFFF}!\nType password below into the input to register!\nThe password must to be 5 to 30 characters long!", GetPName(playerid));
        ShowPlayerDialog(playerid, DIALOG_REGISTER, 3, "{FFFF00}Registering:", string, "Register", "Cacnel");
    }
    return 1;
}
Reply


Messages In This Thread
Help with mysql - by bgedition - 08.01.2015, 11:38
Re: Help with mysql - by JeaSon - 08.01.2015, 12:15
Re: Help with mysql - by bgedition - 08.01.2015, 15:36
Re: Help with mysql - by JeaSon - 08.01.2015, 16:20
Re: Help with mysql - by bgedition - 09.01.2015, 14:13
Re: Help with mysql - by JeaSon - 09.01.2015, 19:11
Re: Help with mysql - by bgedition - 09.01.2015, 19:22
Re: Help with mysql - by JeaSon - 09.01.2015, 19:25
Re: Help with mysql - by bgedition - 09.01.2015, 19:33
Re: Help with mysql - by bgedition - 09.01.2015, 19:55

Forum Jump:


Users browsing this thread: 3 Guest(s)