[Ajuda] Mysql nгo ta salvando skin
#2

troque isso

PHP Code:
           if(response
            { 
                
PlayerInfo[playerid][pSkin]=154
                
cache_get_value_name_int(0"pSkin"PlayerInfo[playerid][pSkin]); 
                
PlayerInfo[playerid][pSexo] = HOMEM
                
PlayerInfo[playerid][pSexo] = 1
                
cache_get_value_name_int(0"pSexo"PlayerInfo[playerid][pSkin]); 
                
RegistrarDados(playerid); 
                
SendClientMessage(playerid,-1,"Vocк й homem."); 
            } 
             else if(!
response
            { 
                
SendClientMessage(playerid,-1,"Vocк й mulher."); 
                   
PlayerInfo[playerid][pSexo] = MULHER
                
PlayerInfo[playerid][pSexo] = 2
                
SetPlayerSkin(playerid56); 
                
RegistrarDados(playerid); 
            } 
por isso

PHP Code:
           if(response
            { 
                
PlayerInfo[playerid][pSexo] = 1;
                
PlayerInfo[playerid][pSkin]=154;
                
SendClientMessage(playerid,-1,"Vocк й homem."); 
            } 
             else if(!
response
            { 
                
PlayerInfo[playerid][pSexo] = 2;
                
PlayerInfo[playerid][pSkin] = 56;
                
SendClientMessage(playerid,-1,"Vocк й mulher."); 
            } 
            
RegistrarDados(playerid); 
troque a stock carregarDados por isso:
PHP Code:
stock CarregarDados(playerid
// aqui carregaremos os ultimos dados das variaveis 
    
PlayerInfo[playerid][pLogado] = true
    
SetPlayerScore(playeridPlayerInfo[playerid][pLevel]); // setamos o level 
    
GivePlayerMoney(playeridPlayerInfo[playerid][pDinheiro]); // o dinheiro 
    
SetSpawnInfo(playerid0PlayerInfo[playerid][pSkin], 1958.331343.1215.36269.15); 
    
SpawnPlayer(playerid); // forзamos o player a spawnar nas cordenas acima com as infos setadas nas 
    
variaveis
    SetPlayerSkin
(playeridPlayerInfo[playerid][pSkin]); 
    return 
1

apaga a instruзгo:
Quote:

PlayerInfo[playerid][pSexo] = 0;

da stock registrar dados

acho que й isso, ver ai.
Reply


Messages In This Thread
Mysql nгo ta salvando skin - by Ryuzaki07 - 02.11.2018, 17:41
Re: Mysql nгo ta salvando skin - by PedroH - 02.11.2018, 19:40
Re: Mysql nгo ta salvando skin - by murilo2929 - 02.11.2018, 19:55
Re: Mysql nгo ta salvando skin - by PedroH - 02.11.2018, 22:12
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 02.11.2018, 23:03
Re: Mysql nгo ta salvando skin - by PedroH - 02.11.2018, 23:52
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 00:04
Re: Mysql nгo ta salvando skin - by Malandrin - 03.11.2018, 00:10
Re: Mysql nгo ta salvando skin - by PedroH - 03.11.2018, 00:11
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 00:13
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 00:15
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 00:20
Re: Mysql nгo ta salvando skin - by PedroH - 03.11.2018, 00:29
Re: Mysql nгo ta salvando skin - by Mandrack_FreeZe - 03.11.2018, 00:42
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 01:23
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 01:35
Re: Mysql nгo ta salvando skin - by Mandrack_FreeZe - 03.11.2018, 02:04
Re: Mysql nгo ta salvando skin - by Ryuzaki07 - 03.11.2018, 03:36

Forum Jump:


Users browsing this thread: 3 Guest(s)