Hello when using FindEntityByClassName for example in this loop
PHP Code:
int ent = MaxClients + 1;
while((ent = FindEntityByClassname(ent, "trigger_multiple")) != -1)
{
SDKHookEx(ent, SDKHook_EndTouch, ignoreCollision);
SDKHookEx(ent, SDKHook_StartTouch, ignoreCollision);
SDKHookEx(ent, SDKHook_Touch, ignoreCollision);
}
How does this loop through all enteties with classname trigger_multiple.
Imagine it finding an entity at index 68 with classname trigger_multiple, When it reruns the loop it will still be index 68 so the loop will run forever with the same entity index