GetPlayerWeaponData bug
#1

Hello.

There's a bug with that function.

When I give to player weapon for example Minigun with 10000+ ammo (it's doesn't appear at hud) and then I use that function it doesn't return any value..

I have this code:
Код:
new weapon, ammo;

GetPlayerWeaponData(playerid, 7, weapon, ammo);
GivePlayerWeapon(playerid, weapon, -ammo);
and it's not working for 10000+ ammo.

So?
Reply
#2

why not just
Код:
GivePlayerWeapon(playerid,38,10000);
Reply
#3

Anyway, there's a bug and it should be repair. :P
Reply
#4

stop using negative ammo. it causes unexpected results!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)