Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Getting from Array?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-11-2017 , 11:30   Re: [ H3LP ] Getting from Array?
Reply With Quote #1

Maybe there's a better way of doing things here.
As long as you provide an example that is not describing your actual code accurately there's nothing we can do.

A good way to avoid loops is using custom entity values which could point to a more specific data point or even an array handle.
Perhaps there's a better way of organizing the data in the arrays to make it more accessable.
Dynamic arrays within dynamic arrays sounds like a stupid idea but can be very clever in some cases.
Tries can be used with "custom pointers" so you don't have to search.

But it all depends on what you're doing.
Also, there's no point of avoiding loops if your action is reacting to, for example, a chat command which is not frequently called.
__________________

Last edited by Black Rose; 04-11-2017 at 16:48.
Black Rose 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 17:52.


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