Check all the guns in all slots?
#4

You mean something like this? Untested.

pawn Код:
new WeaponData[13][2], string[128];
for (new i = 0; i < 13; i++)
{
    WeaponData[i][0] = 255;

    GetPlayerWeaponData(playerid, i, WeaponData[i][0], WeaponData[i][1]);
    if(WeaponData[i][0] != 255)
    {
        format(string, sizeof(string), "Found a weapon in slot %d", i);
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        break;
    }
}
Reply


Messages In This Thread
Check all the guns in all slots? - by Fj0rtizFredde - 29.12.2010, 19:19
Re: Check all the guns in all slots? - by Anwix_ - 29.12.2010, 20:13
Re: Check all the guns in all slots? - by Fj0rtizFredde - 29.12.2010, 21:04
Re: Check all the guns in all slots? - by Anwix_ - 31.12.2010, 15:24

Forum Jump:


Users browsing this thread: 3 Guest(s)