Posts: 51
Threads: 9
Joined: Aug 2013
Reputation:
0
GetPlayerWeapon(playerid) mean, what you are holding a weapon. But when ammo is 0, that weapon is disappearing.
Posts: 161
Threads: 12
Joined: Apr 2012
Reputation:
0
Yes, in theory it means that weapon is going to disappear, unfortunately it does not return ammo 0 for weapon slots 8 and 9 when it should.
Posts: 2,938
Threads: 162
Joined: May 2010
Why are you using "new const" in that situation? The best would be to use "static" in that situation. Try it.
Posts: 161
Threads: 12
Joined: Apr 2012
Reputation:
0
lolwut? It does not change how GetPlayerAmmo works. Try it yourself before giving an opinion on solution. In case you dont know what weapnos are in slot 8 and 9 then I will tell you: grenade, teargas, molotov cocktail, satchel (remote explosives), spraycan, fire extinguisher, camera.
I think this problem is linked to OnPlayerWeaponShot update as these are not bullet weapons.
Posts: 161
Threads: 12
Joined: Apr 2012
Reputation:
0
I have a solution but a more complex than this, will release it soon.
Posts: 2,938
Threads: 162
Joined: May 2010
Quote:
Originally Posted by Hanger
lolwut? It does not change how GetPlayerAmmo works. Try it yourself before giving an opinion on solution. In case you dont know what weapnos are in slot 8 and 9 then I will tell you: grenade, teargas, molotov cocktail, satchel (remote explosives), spraycan, fire extinguisher, camera.
I think this problem is linked to OnPlayerWeaponShot update as these are not bullet weapons.
|
I wasn't giving you a SOLUTION. I was giving you CODING ADVICE.
Christ this community nowadays.