GetPlayerWeaponData
#1

i'm using GetPlayerWeaponData for saving player weapons but i found some wired bug (i guess)...
if player has colt(or any other weapon) with some ammo and he shoots and goes offline his stats save as they should but if he did not spent any of his ammo when he goes offline his ammo drops to 0

is there way around it?
Reply
#2

*bump
Reply
#3

*bump
i found out that same thing happens with GetPlayerAmmo and if you waste your ammo and check for WeaponData, ID of item is 'saved' (it doesn't change ,it should be 0)

soo how can i update and save player weapon and ammo
Reply
#4

If the weapon still shows in the slot after they wasted all the ammo, then just have it check if the weapon in that slot actually has ammo with it before saving.
Reply
#5

that's the problem ,if player did not waste any of his ammo it will show same stats as like he wasted it all

even if i use SetPlayerAmmo and then GetPlayerAmmo i get same result

edit: i solved problem ,if someone has the same problem i can pm them code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)