[Ajuda] Erro na include.
#1

Estou usando a include SDArmas.
ela tem a funзгo de tirar ou devolver as armas do jogador.
Mas na hora de devolver.. ela devolve com muniзгo -10590..
Aqui o codigo dela.

pawn Код:
#include <a_samp>
enum aInfo
{
arma,
ammo
}
new Armas[13][aInfo];

forward SalvarArmas(playerid);
forward DevolverArmas(playerid);
public SalvarArmas(playerid)
{
    for(new a; a < 13; a++)
    {
        GetPlayerWeaponData(playerid,a,Armas[a][arma],Armas[a][ammo]);
    }
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, -1, "Suas armas foram recolhidas!");
    return 1;
}
public DevolverArmas(playerid)
{
    for(new a; a < 13; a++)
    {
        GivePlayerWeapon(playerid,Armas[a][arma],Armas[a][ammo]);
    }
    SendClientMessage(playerid, -1, "Suas armas foram devolvidas!");
    return 1;
}
Reply


Messages In This Thread
[Ajuda] Erro na include. - by CanTLoGin - 26.09.2011, 01:03
Re: Erro na include. - by [O.z]Caroline - 26.09.2011, 02:58
Re: Erro na include. - by Ricop522 - 26.09.2011, 03:26
Re: Erro na include. - by [O.z]Caroline - 26.09.2011, 03:27
Re: Erro na include. - by Ricop522 - 26.09.2011, 03:29
Re: Erro na include. - by WLSF - 26.09.2011, 03:33
Re: Erro na include. - by CanTLoGin - 26.09.2011, 04:09

Forum Jump:


Users browsing this thread: 2 Guest(s)