Quote:
Originally Posted by cravenge
MasterMind, I advice you to always check if the "m_hActiveWeapon" netprop returns -1 because it produces errors about "Entity index -1 is invalid".
Code:
new Weapon = GetEntPropEnt(client, Prop_Data, "m_hActiveWeapon");
if(Weapon == -1 || !IsValidEntity(Weapon))
return Plugin_Continue;
|
Whats the point in that O.o
If a entity is invalid it will return -1 anyway so it just becomes a useless check
__________________