A function wich returns all the players weapons wont work.
#6

Try this;

pawn Код:
stock GetAllPlayerWeapons(playerid)
{
    new weapons[13],ammo;
    for(new i=0;i<13;i++)
    {
        GetPlayerWeaponData(playerid, i, weapon, ammo);
        if(weapon != 0)
        {
            format(message, sizeof(message), "Player %s's weapons: Slot(%d): Weapon ID(%d) Ammo(%d)", GetName(Player),i, weapon, ammo);
            SendClientMessage(playerid, -1, message);
        }
    }
    return weapon;//weapons;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)