open.mp forum
[Suggestion] Dynamic storage containers - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: open.mp (https://forum.open.mp/forumdisplay.php?fid=40)
--- Forum: Questions and Suggestions (https://forum.open.mp/forumdisplay.php?fid=42)
--- Thread: [Suggestion] Dynamic storage containers (/showthread.php?tid=1316)



Dynamic storage containers - EvilShadeZ - 2020-11-05

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.


RE: Dynamic storage containers - EvilShadeZ - 2020-11-05

remove please. I replied instead of editing.


RE: Dynamic storage containers - Expert* - 2020-11-11

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

https://github.com/IllidanS4/PawnPlus/wiki/Lists


RE: Dynamic storage containers - Pinch - 2020-11-12

(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)