Raised This Month: $51 Target: $400
 12% 

FindEntityByClassName


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nezur0s
Junior Member
Join Date: Feb 2020
Old 03-29-2020 , 02:10   FindEntityByClassName
Reply With Quote #1

Hello when using FindEntityByClassName for example in this loop
PHP Code:
int ent MaxClients 1;
    while((
ent FindEntityByClassname(ent"trigger_multiple")) != -1)
    {
        
SDKHookEx(entSDKHook_EndTouchignoreCollision);
        
SDKHookEx(entSDKHook_StartTouchignoreCollision);
        
SDKHookEx(entSDKHook_TouchignoreCollision);
    } 
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
Nezur0s is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode