[Help] Error in DOF2
#4

So ... I changed to this, I managed to compile, but now when I enter the server the server closes instantly, someone 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] Error in DOF2 - by ApolloScripter - 07.12.2018, 15:12
Re: [Help] Error in DOF2 - by Logic_ - 07.12.2018, 15:48
Re: [Help] Error in DOF2 - by ApolloScripter - 07.12.2018, 16:04
Re: [Help] Error in DOF2 - by ApolloScripter - 07.12.2018, 20:42

Forum Jump:


Users browsing this thread: 1 Guest(s)