Quote:
Originally Posted by GasmoN
Before I was using one loop, and 2 other loops inside that one loop.
Now, I only loop entities with maximum number of created entities and check some conditions.
Why is that ruined?
fm_strip_user_gun already comes with fakemeta_util, I didn't looked up the stock itself how it's done. https://www.amxmodx.org/api/fakemeta...strip_user_gun
|
there's nothing wrong by using two loops inside of each other and also i told you to update the code and use the other way, which its this way, the looping is done in the module which is much faster.
Quote:
|
Originally Posted by Natsheh
PHP Code:
stock pf_find_weapon_ent_id(id, CSW_ID) { static szClassname[24]; get_weaponname(CSW_ID, szClassname, charsmax(szClassname)); return find_ent_by_owner(-1, szClassname, id); }
|
and how's it better by looping all the existed entities ?
__________________