[Help] DOF2 Closing the server
#1

I have done, or at least tried to make and use DOF2, to storing some integers for a system that I am doing, compiled without problem neither one, however when I enter the GTA the server is closed instantly, and the problem is in the code below , because when removing it, the server comes back in normally, does anyone know why?

PHP код:
//Under OnPlayerConnect
    
new Archives[70], jogador[MAX_PLAYER_NAME];
    
GetPlayerName(playeridjogadorsizeof(jogador));
    
format(Archivessizeof(Archives), "Classes/%s.ini"jogador);
    if(!
fexist(Archives))
    {
        
DOF2_CreateFile(Archives);
        
DOF2_SetInt(Archives"ClasseID"1);
    }
    else
    {
        
CLASSEide[playerid] = DOF2_GetInt(Archives"ClassID");
    } 
PHP код:
// Under OnPlayerDisconnect
    
new Archives[70], jogador[MAX_PLAYER_NAME];
    
GetPlayerName(playeridjogadorsizeof(jogador));
    
format(Archivessizeof(Archives), "Classes/%s.ini"jogador);
    if(!
fexist(Archives))
    {
        
DOF2_CreateFile(Archives);
        
DOF2_SetInt(Archives"ClasseID"CLASSEide[playerid]);
        
DOF2::SaveFile();
    }
    else
    {
        
DOF2_SetInt(Archives"ClassID"CLASSEide[playerid]);
        
DOF2_SaveFile();
    }
    return 
1
Reply


Messages In This Thread
[Help] DOF2 Closing the server - by ApolloScripter - 08.12.2018, 15:39
Re: [Help] DOF2 Closing the server - by Logic_ - 08.12.2018, 15:43
Re: [Help] DOF2 Closing the server - by ApolloScripter - 08.12.2018, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)