[Ajuda] Contas reseta do nada..
#4

PHP код:
OnPlayerSave(playerid);
public 
OnPlayerSave(playerid)
{
    
format(String,sizeof(String),"Contas/%s.ini",PlayerNick(playerid));
    if(!
DOF2_FileExists(String)) { return 1; }
    if(
DOF2_FileExists(String) && JogadorLogado[playerid] == true)
    {
        
DOF2_SetInt(String,"Dinheiro",GetPlayerMoney(playerid));
         
DOF2_SetInt(String,"NivelAdmin",Player[playerid][qAdmin]);
         
DOF2_SetInt(String,"Matou",Player[playerid][qMatou]);
          
DOF2_SetInt(String,"Morreu",Player[playerid][qMorreu]);
        
DOF2_SetInt(String,"Char",Player[playerid][qSkin]);
        
DOF2_SetInt(String,"Level",GetPlayerScore(playerid));
        
DOF2_SetInt(String,"Sexo",Player[playerid][qSexo]);
        
DOF2_SetInt(String,"Tutorial",Player[playerid][qTut]);
        
DOF2_SetInt(String,"LicencaAero",Player[playerid][qLicAero]);
        
DOF2_SetInt(String,"LicencaBarco",Player[playerid][qLicBarco]);
        
DOF2_SetInt(String,"LicencaMoto",Player[playerid][qLicMoto]);
        
DOF2_SetInt(String,"LicencaCarro",Player[playerid][qLicCarro]);
        
DOF2_SetInt(String,"LicencaCamOni",Player[playerid][qLICamOni]);
        
DOF2_SetInt(String,"LicencaArma",Player[playerid][qLicArma]);
        
DOF2_SetInt(String,"EstiloLuta",Player[playerid][qLuta]);
        
DOF2_SetInt(String,"Organizacao",Player[playerid][qOrganizacao]);
        
DOF2_SetInt(String,"CargoORG",Player[playerid][qCargo]);
        
DOF2_SetInt(String,"GPS",Player[playerid][qGPS]);
        
DOF2_SaveFile();
    }
    return 
1;

Reply


Messages In This Thread
Contas reseta do nada.. - by PetterAdriano - 13.01.2014, 23:35
Re: Contas reseta do nada.. - by RiqueP - 13.01.2014, 23:37
Re: Contas reseta do nada.. - by kevinho.007 - 13.01.2014, 23:52
Re: Contas reseta do nada.. - by PetterAdriano - 13.01.2014, 23:54
Re: Contas reseta do nada.. - by kevinho.007 - 14.01.2014, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)