Raised This Month: $ Target: $400
 0% 

Solved loop entitys


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-16-2022 , 14:23   Re: loop entitys
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
What simpler with this ?

PHP Code:
removeTransEntsClient, {0,1,2,3,100} ); 
You're hardcoding some values in the script which its not needed at all and those numbers have absolute no meaning atleast try to make them readable so people understand what is happening in your code.
They are the cells that it will read, 100 is to tell it that I have reached this far, so, end of the loop, too simple

PHP Code:

                             removeTransEnts
Client, {0,1,2,100} );

                             
setEntRemove__int_TransEnts[Client][0] );
                             
setEntRemove__int_TransEnts[Client][1] ); 
                             
setEntRemove__int_TransEnts[Client][2] ); 
other example:

PHP Code:
                             removeTransEntsClient, {6,5,4,3,100} );

                             
setEntRemove__int_TransEnts[Client][6] ); 
                             
setEntRemove__int_TransEnts[Client][5] );
                             
setEntRemove__int_TransEnts[Client][4] ); 
                             
setEntRemove__int_TransEnts[Client][3] ); 
Well if you don't understand it's obvious that it wouldn't make sense

If you still do not understand you should read better, I explain it in detail above
https://forums.alliedmods.net/showpo...00&postcount=3

Last edited by MrPickles; 11-16-2022 at 14:28.
MrPickles is offline
Reply



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 15:43.


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