03.11.2010, 09:01
GetPlayerWeaponData sometimes doesn't always work the way it should.
For example, if you give a player lots of weapons, then GetPlayerWeaponData for all weapon slots, sometimes it just returns old values of data.
If you use OnPlayerUpdate(playerid) after giving weapons and before GetPlayerWeaponData, it always works.
Maybe stating the obvious, but this is good for making sure what weapons a player really has.
For example, if you give a player lots of weapons, then GetPlayerWeaponData for all weapon slots, sometimes it just returns old values of data.
If you use OnPlayerUpdate(playerid) after giving weapons and before GetPlayerWeaponData, it always works.
Maybe stating the obvious, but this is good for making sure what weapons a player really has.

