SA-MP Forums Archive
[AJUDA] Skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Skin (/showthread.php?tid=175000)



[AJUDA] Skin - Dr_Pawno - 07.09.2010

Aee pessoal, quando eu do /gmx no meu serv as skin dos kra q tгo on n salva. ja tentei po no OnGameModeExit pra salva skin, ja tentei po no comando pra salva a skin + n daaaa... ajudem:

pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] >= 2800)
        {
            if(AdminInfo[playerid][aTrabalhando] == 1)
            {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    pap_SalvarInt(i, "Skin", GetPlayerSkin(playerid));
                }
                LimparChat(999);
                format(string, sizeof(string), "[ADMIN] %s deu GMX no servidor.", sendername);
                SendClientMessageToAll(COLOR_FADE5, string);
                GameTextForAll("~g~G~y~M~b~X~w~!", 1000, 0);
                GameModeExit();
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo esta logado como admin. (Use: /ta)");
                return 1;
            }
        }
        else if(PlayerInfo[playerid][pAdmin] > 0 && PlayerInfo[playerid][pAdmin] < 2800)
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Vocк й cargo baixo.");
            return 1;
        }
        else if(PlayerInfo[playerid][pAdmin] == 0)
        {
            SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й admin.");
            return 1;
        }
    }



Re: [AJUDA] Skin - StreetGT - 07.09.2010

isso tem que ter qualquer coisa parecida com OnPlayerStatusUpdate. pk voce ta a dar RR e nao esta a guardar


Re: [AJUDA] Skin - SuB_ZeRo0_ - 07.09.2010

Muda por:

pawn Код:
for(new i = 0; i < (MAX_PLAYERS+1); i++)
                {
                    pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
                }



Re: [AJUDA] Skin - ipsBruno - 07.09.2010

Faz aquilo que SubZero disse...

SubZero que estava aqui estudando com um Grupo e chegamos a uma conclusгo de que definir a Array Externamente no Loop й a Melhor Maneira,Loop da Voltas..

pawn Код:
new i;
#define SLOTS 500 //- Nъmero de Slots -//
for(i = 0 ; i <= MAX_PLAYERS; i++)//+1,ele teria que calcular,nгo, nгo buga '<='
{
     pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
}



Re: [AJUDA] Skin - Lipepva - 08.09.2010

ei Drakon ai vocк definiu SLOTS para nada por que vocк continuou a usar o MAX_PLAYERS, ficaria assim, axo:
pawn Код:
new i;
#define SLOTS 500 //Nъmero de Slots
for(i = 0 ; i <= SLOTS; i++)
{
     pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
}



Re: [AJUDA] Skin - ipsBruno - 08.09.2010

Valeu LIP, nem me Liguei

This forum requires that you wait 120 seconds between posts. Please try again in 43 seconds.


Re: [AJUDA] Skin - SuB_ZeRo0_ - 08.09.2010

Quote:
Originally Posted by DraKiNs
Посмотреть сообщение
Valeu LIP, nem me Liguei

This forum requires that you wait 120 seconds between posts. Please try again in 43 seconds.
Cara, eu jб tive problemas com aquilo, nгo faz diferenзa com +1 ou <=
Como eu jб tive bugs assim, eu coloco +1.

Se quiser:

pawn Код:
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 501
#endif
Pronto.. sу deixar < MAX_PLAYERS


Re: [AJUDA] Skin - Dr_Pawno - 08.09.2010

Nem um deu serto