[Ajuda] Salvamento
#2

Faзa em stock й depois coloque ela no OnPlayerDisconnect

ex:

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    SalvarContas(playerid);
    return 1;
}

stock SalvarContas(playerid)
{
        new String[128];
    format(String, sizeof(String), "Contas/%s.ini", Name(playerid));
    {
        // Dados das contas aqui para salvar
    }
    return 1;
}

stock Name(playerid)
{
    new Nome[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, Nome, MAX_PLAYER_NAME+1);
    return Nome;
}
Faзo assim й da certinho ...
Reply


Messages In This Thread
Salvamento - by Luucass - 09.05.2015, 16:54
Re: Salvamento - by Vegassilva - 09.05.2015, 16:58
Re: Salvamento - by Luucass - 09.05.2015, 17:44
Re: Salvamento - by Vegassilva - 09.05.2015, 18:33
Re: Salvamento - by Luucass - 09.05.2015, 19:02
Re: Salvamento - by Cleyson - 09.05.2015, 19:37
Re: Salvamento - by PT - 09.05.2015, 19:48
Re: Salvamento - by Vegassilva - 09.05.2015, 20:48
Re: Salvamento - by Luucass - 09.05.2015, 22:13

Forum Jump:


Users browsing this thread: 2 Guest(s)