21.06.2018, 06:45
Let me guess your problem:
You are trying to divide with zero...
When the player has hits but never missed, they will get that error in commands.
You need to check first if MissedWeaponHits has positive value, then you can divide with it. When both is zero, simply tells the player has no accuracy, otherwise 100% accuracy.
You are trying to divide with zero...
When the player has hits but never missed, they will get that error in commands.
You need to check first if MissedWeaponHits has positive value, then you can divide with it. When both is zero, simply tells the player has no accuracy, otherwise 100% accuracy.