Quote:
Originally Posted by Xalus
Try it ;)
PHP Code:
for(new i = 0; i < find_sphere_class(ent, "player", get_pcvar_float(cRadius), plList, charsmax(plList), plOrigin); i++)
|
Wow.
You know that the condition is called after every loop iteration, so you are calling that function as many times as the number of entities it returns.
Very inefficient.
Call it once before the loop and store the return in a variable. Then use the variable in the condition.
__________________