[Ajuda] Salvamento de dados
#10

PHP код:
stock CarregarPlayer(playerid)
{
    if(
DOF2_FileExists(GetArquivo(playerid)))
    {

        
playerInfo[playerid][Administrador] = DOF2_GetInt(GetArquivo(playerid), "Administrador");
        
playerInfo[playerid][Level] = DOF2_GetInt(GetArquivo(playerid), "Level");
        
playerInfo[playerid][Skin] = DOF2_GetInt(GetArquivo(playerid), "Skin");
        
playerInfo[playerid][Matou] = DOF2_GetInt(GetArquivo(playerid), "Matou");
        
playerInfo[playerid][Morreu] = DOF2_GetInt(GetArquivo(playerid), "Morreu");
        
playerInfo[playerid][Dinheiro] = DOF2_GetInt(GetArquivo(playerid), "Dinheiro");

        for(new 
0sizeof(Registro); i++) { TextDrawHideForPlayer(playeridRegistro[i]);}
        for(new 
0sizeof(PlayerRegistro); i++) { PlayerTextDrawHide(playeridPlayerRegistro[i]);}

        
playerInfo[playerid][Logado] = true;

        
TogglePlayerSpectating(playerid0);
        
CancelSelectTextDraw(playerid);

        
SpawnPlayer(playerid);

        
GivePlayerMoney(playeridplayerInfo[playerid][Dinheiro]);
        
SetPlayerSkin(playeridplayerInfo[playerid][Skin]);
        
GetPlayerScore(playeridplayerInfo[playerid][Level]);
    }
    return 
1;

Reply


Messages In This Thread
Salvamento de dados - by Feelipe - 19.03.2017, 01:46
Re: Salvamento de dados - by PuYi - 19.03.2017, 01:48
Re: Salvamento de dados - by Feelipe - 19.03.2017, 02:07
Re: Salvamento de dados - by PuYi - 19.03.2017, 02:23
Re: Salvamento de dados - by Feelipe - 19.03.2017, 02:58
Re: Salvamento de dados - by RodrigoMSR - 19.03.2017, 03:01
Re: Salvamento de dados - by Feelipe - 19.03.2017, 03:37
Re: Salvamento de dados - by Feelipe - 19.03.2017, 18:35
Re: Salvamento de dados - by Feelipe - 12.04.2017, 01:29
Re: Salvamento de dados - by Relaxed - 12.04.2017, 01:40

Forum Jump:


Users browsing this thread: 1 Guest(s)