Помогите с сохранением
#3

PHP код:
stock SaveAccount(playerid

    if(
gPlayerLogged[playerid] == true
    { 
        new 
query[600] ="UPDATE `accounts` SET ";
        
strcat(query"`level` = '%d',\ 
            `respect` = '%d',\ 
            `money` = '%d',\ 
            `bankmoney` = '%d',\ 
            `phone` = '%d',\ 
            `skin` = '%d' "
);
        
strcat(query"`phonebalance` = '%d',\ 
            `member` = '%d',\ 
            `leader` = '%d',\ 
            `rank` = '%d',\ 
            `mskin` = '%d',\ 
            `satiety` = '%d' "
);
        
strcat(query,"WHERE `id` = '%d'");
        
format(querysizeof(query), query
            
PlayerInfo[playerid][pLevel], 
            
PlayerInfo[playerid][pRespect], 
            
PlayerInfo[playerid][pMoney], 
            
PlayerInfo[playerid][pBankMoney], 
            
PlayerInfo[playerid][pPhone], 
            
PlayerInfo[playerid][pSkin], 
            
PlayerInfo[playerid][pPhoneBalance], 
            
PlayerInfo[playerid][pMember], 
            
PlayerInfo[playerid][pLeader], 
            
PlayerInfo[playerid][pRank], 
            
PlayerInfo[playerid][pMSkin], 
            
PlayerInfo[playerid][pSatiety], 
            
PlayerInfo[playerid][pID]); 
        
mysql_function_query(dbHandlequeryfalse"""" ); 
        return 
true
    } 
    return 
false

Reply


Messages In This Thread
Помогите с сохранением - by nikita86826 - 29.12.2014, 20:01
Re: Помогите с сохранением - by stabker - 29.12.2014, 20:13
Re: Помогите с сохранением - by White_116 - 29.12.2014, 20:18
Re: Помогите с сохранением - by nikita86826 - 29.12.2014, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)