GetPlayerWeaponData reports 0 ammo
#8

Tried using SetPlayerArmedWeapon and SetPlayerAmmo to fix it, but no luck. It seems to happen when I recieve the weapons while paused (if I pause mid-connection).

I'm thinking this has something to do with the weapons specified if AddPlayerClass, which I've set to all 0. I'll try giving them their weapons a second or two after spawning and see if that helps.

EDIT: Oops, sorry about the double post. Thought someone replied.

EDIT #2: Tried it with a delay, but it's still messing up. Sigh. This time I lost some weapons (not just ammo) also. I don't understand why this only happens sometimes. I don't know what's causing it.
Reply


Messages In This Thread
GetPlayerWeaponData reports 0 ammo - by MP2 - 09.10.2015, 15:49
Re: GetPlayerWeaponData reports 0 ammo - by iggy1 - 09.10.2015, 18:14
Re: GetPlayerWeaponData reports 0 ammo - by Kevln - 09.10.2015, 18:47
Re: GetPlayerWeaponData reports 0 ammo - by MP2 - 09.10.2015, 18:48
Re: GetPlayerWeaponData reports 0 ammo - by xVIP3Rx - 09.10.2015, 19:05
Re: GetPlayerWeaponData reports 0 ammo - by Kevln - 09.10.2015, 19:05
Re: GetPlayerWeaponData reports 0 ammo - by MP2 - 09.10.2015, 22:11
Re: GetPlayerWeaponData reports 0 ammo - by MP2 - 10.10.2015, 00:43

Forum Jump:


Users browsing this thread: 3 Guest(s)