Problem ORM [+rep]
#1

Hi,
My ORM does not work, it does not load yet nothing all looks good ... Thank you.

PHP код:
new _query[128];
mysql_format(connectSQL_querysizeof(_query), "SELECT * FROM `account` WHERE `Name` = '%e'"returnName(playerid));
mysql_tquery(connectSQL_query"OnPlayerDataLoad""d"playerid);
public 
OnPlayerDataLoad(playerid)
{
        
    if(
cache_num_rows() == 1)
    {
           new 
ORM:ormid pInfo[playerid][pORM_ID] = orm_create("account");
        
orm_addvar_int(ormidpInfo[playerid][pID], "ID");
        
orm_addvar_int(ormidpInfo[playerid][pAdmin], "AdminLevel");
        
orm_addvar_int(ormidpInfo[playerid][pLevel], "Level");
        
orm_addvar_int(ormidpInfo[playerid][pRespect], "Respect");
        
orm_addvar_int(ormidpInfo[playerid][pBank], "Bank");
        
orm_addvar_int(ormidpInfo[playerid][pSex], "Sex");
        
orm_addvar_int(ormidpInfo[playerid][pOrigin], "Origin");
        
orm_addvar_int(ormidpInfo[playerid][pSkin], "Skin");
        
orm_addvar_int(ormidpInfo[playerid][pBanTime], "BanTime");
        
        
orm_addvar_string(ormidpInfo[playerid][pPassword], 248"Password");
        
orm_addvar_string(ormidpInfo[playerid][pName], MAX_PLAYER_NAME+1"Name");
        
orm_addvar_string(ormidpInfo[playerid][pEmail], 248"Email");
        
orm_addvar_string(ormidpInfo[playerid][pDescription], 248"Description");
        
orm_addvar_string(ormidpInfo[playerid][pBanReason], 248"BanReason");
        
orm_setkey(ormid"Name");
        
dialogShow(playeridconnectPlayerDIALOG_STYLE_PASSWORD"{0197D8}Connexion а votre compte""{FEFEFE}Salut ! Merci d'entrer ton mot de passe dans la case ci-dessous, vous avez le droit а un maximum de 5 essais, sinon vous aurez un bannissement de 5 heures sans possibilitй d'unban manuellement.""Connexion""Dйconnexion");
    }
    
orm_setkey(pInfo[playerid][pORM_ID], "ID");
    return 
true;
}[
B][/B
Reply


Messages In This Thread
Problem ORM [+rep] - by Z3N0N - 31.01.2015, 12:17
Re: Problem ORM [+rep] - by StasWilson - 31.01.2015, 12:47
Re : Problem ORM [+rep] - by Z3N0N - 31.01.2015, 13:15
Re: Problem ORM [+rep] - by StasWilson - 31.01.2015, 14:50
Re : Problem ORM [+rep] - by Z3N0N - 31.01.2015, 15:07
Re: Problem ORM [+rep] - by StasWilson - 31.01.2015, 15:14
Re : Problem ORM [+rep] - by Z3N0N - 31.01.2015, 15:18
Re: Problem ORM [+rep] - by StasWilson - 31.01.2015, 15:40
Re: Problem ORM [+rep] - by StasWilson - 31.01.2015, 15:42
Re : Problem ORM [+rep] - by Z3N0N - 31.01.2015, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)