Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot open.mp Questions and Suggestions [Suggestion] Dynamic storage containers

 
  • 0 Vote(s) - 0 Average
Suggestion Dynamic storage containers
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#1
2020-11-05, 08:57 PM (This post was last modified: 2020-11-05, 09:01 PM by EvilShadeZ.)
I would like for some kind of dynamic storage container to be implemented such as list. This would be especially beneficial now that we have removed limits for various entity types. It would be quite ridiculous defining enormous arrays to keep track of things.

I imagine it working something similar to how y_iterate was implemented.

Code:
new List:list = List_New();
List_Add(list,value);
List_Remove(list,value);
List_Delete(list);
List_Clear(list);
List_Random(list);
List_Next(...);  
List_Previous(...);
etc...


If different data types could be supported it would be a plus, but integers would be a great start.
[Image: qPwh60X.png]
EvilShadeZ
Offline

Burgershot Member
Posts: 21
Threads: 5
Joined: Apr 2019
Reputation: 2
#2
2020-11-05, 09:00 PM (This post was last modified: 2020-11-05, 09:02 PM by EvilShadeZ.)
remove please. I replied instead of editing.
[Image: qPwh60X.png]
Expert*
Offline

Burgershot Member
Posts: 61
Threads: 2
Joined: Apr 2019
Reputation: 4
#3
2020-11-11, 06:52 AM
https://www.burgershot.gg/showthread.php?tid=96
https://github.com/IllidanS4/PawnPlus/wiki/Lists
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#4
2020-11-12, 03:42 PM
(2020-11-11, 06:52 AM)Expert* Wrote: https://www.burgershot.gg/showthread.php?tid=96
https://github.com/IllidanS4/PawnPlus/wiki/Lists
It's awfully slow (according to Y_Less)
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode