[Ajuda] kills/deaths nao salvam
#10

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new
        
String[50],
        
Nome[MAX_PLAYER_NAME]
    ;
    
GetPlayerName(playeridNomesizeof Nome);
    
format(Stringsizeof String"Pasta2/%s.ini"Nome);
    if(!
DOF2_FileExists(String)) { DOF2_CreateFile(String); }
    
DOF2_SetInt(String"Morreu"pInfo2[playerid][Morreu]);
    
DOF2_SetInt(String"Matou"pInfo2[playerid][Matou]);
    
DOF2_SaveFile();
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
pInfo2[playerid][Matou] = EOS;
    
pInfo2[playerid][Morreu] = EOS;
    new
        
String[50],
        
Nome[MAX_PLAYER_NAME]
    ;
    
GetPlayerName(playeridNomesizeof Nome);
    
format(Stringsizeof (String), "Pasta2/%s.ini"Nome);
    if(
DOF2_FileExists(String))
    {
        
pInfo2[playerid][Matou] = DOF2_GetInt(String"Matou");
        
pInfo2[playerid][Morreu] = DOF2_GetInt(String"Morreu");
    }
    return 
1;

Reply


Messages In This Thread
kills/deaths nao salvam - by PedroH - 16.07.2017, 02:40
Nгo esqueзa da ";" - by DogMal - 16.07.2017, 02:49
Re: kills/deaths nao salvam - by PedroH - 16.07.2017, 02:59
Re: kills/deaths nao salvam - by DogMal - 16.07.2017, 03:03
Re: kills/deaths nao salvam - by PedroH - 16.07.2017, 03:25
Re: kills/deaths nao salvam - by Jonorusc - 16.07.2017, 14:30
Re: kills/deaths nao salvam - by PedroH - 16.07.2017, 16:56
Re: kills/deaths nao salvam - by XandyMello - 16.07.2017, 17:23
Re: kills/deaths nao salvam - by PedroH - 16.07.2017, 18:27
Re: kills/deaths nao salvam - by XandyMello - 16.07.2017, 20:55

Forum Jump:


Users browsing this thread: 7 Guest(s)