GetPlayerWeaponData ammo returns -1 in a loop (sometimes)
#3

Thanks but the problem is that i am using the fuction that way;

pawn Код:
for(new slot = 0; slot < 13; slot++)
          {
            new wep, ammo;
            GetPlayerWeaponData(playerid, slot, wep, ammo);

            if(wep != 0 && ammo != 0)
            {
                  if(PlayerInfo[playerid][pGun1] == 0) { PlayerInfo[playerid][pGun1] = wep; PlayerInfo[playerid][pAmmo1] = ammo; }
             }
           }
I don't think i can do this with your function.
Reply


Messages In This Thread
GetPlayerWeaponData ammo returns -1 in a loop (sometimes) - by Nakash - 17.01.2010, 14:47
Re: GetPlayerWeaponData ammo returns -1 in a loop (sometimes) - by pagie1111 - 17.01.2010, 14:57
Re: GetPlayerWeaponData ammo returns -1 in a loop (sometimes) - by Nakash - 17.01.2010, 15:07
Re: GetPlayerWeaponData ammo returns -1 in a loop (sometimes) - by Backwardsman97 - 17.01.2010, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)