• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Dynamic storage containers
#1
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]

  Reply
#2
remove please. I replied instead of editing.
[Image: qPwh60X.png]

  Reply
#3
https://www.burgershot.gg/showthread.php?tid=96

https://github.com/IllidanS4/PawnPlus/wiki/Lists
  Reply
#4
(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.
  Reply


Forum Jump: