Quote:
Originally Posted by little_froy
cvar cannot be load right when every first round start.
no runtime error have been thorw till then.
i don't like delete cause that mean stack varible of C++.
use clientd but not userid to unify type. modify by clientid but timer use userid is uncoordinated.
use strcontain not strcmp cause i got weapon name by geteditclassname.there may "weapon_" in front of weaponname.
text not the point but the numbers.
Thanks
|
Yes there will always be "weapon_" in front when getting a players weapon, thats why you can skip it with classname[7] and using strcmp, it's more efficient, the weapon names don't change or suddenly not have "weapon_" in front, only certain events or things would return without "weapon_" but in that case you know about it and it won't suddenly have "weapon_" in front.
I don't know what you mean by delete. That's now the standard for killing a timer and resetting the handle and closing other handles too.
Quote:
Originally Posted by little_froy
have been tested in localplay, multiplay, afk, teamchanged. no runtime error thorw anf looks like.no problem
|
I can guarantee you 100% there will be people reporting errors if they use it. You do not valid client indexes on timers, all it takes it someone to disconnect while the timer is active and you'll have errors filling the error logs. Just because you haven't had an issue is not an excuse to not bother validating client and entity indexes correctly. That's either being lazy or ignorant.
__________________