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;
|
hmm i've yet to see that error in this plugin, although i have in other plugins i'll keep an eye out for it, wouldn't checking if its a valid entity to begin with be enough? I haven't played through an entire map yet and fully tested it though, thanks for the heads up...I'm gonna be rewriting it abit more anyway so i'll keep that in mind...