In need of dynamic array - Best solution?
#4

None that I know off.
Maybe someone wrote a plugin for such issues, but I would just go for a big-enough array to begin with and keep it that way.

PAWN is a pretty static language, we'll all have to deal with this.

I would rather use a language that can handle dynamic arrays and use real objects and OOP programming instead of a static language, but we can't choose this unfortunately.

I'm also looking for ways to make my own script as flexible as possible, but sometimes I'll have to accept these issues as well.
My script needs to be able to add gas-stations, police-stations, speedcams, routes, locations, cargotypes, houses, businesses, and ALOT more during runtime.
Since arrays can't be resized during runtime, I'll just have to create large-enough arrays, and they consume more memory than a simple string of size 3000.

My data may become so large that 1000 indices is too small to hold it all, and even when I allow admins to add new data during runtime.
Reply


Messages In This Thread
In need of dynamic array - Best solution? - by AnthonyTimmers - 01.12.2014, 19:27
Re: In need of dynamic array - Best solution? - by PowerPC603 - 01.12.2014, 21:54
Re: In need of dynamic array - Best solution? - by AnthonyTimmers - 01.12.2014, 22:02
Re: In need of dynamic array - Best solution? - by PowerPC603 - 01.12.2014, 22:13
Re: In need of dynamic array - Best solution? - by Pottus - 01.12.2014, 22:26
Re: In need of dynamic array - Best solution? - by Vince - 02.12.2014, 07:44
Re: In need of dynamic array - Best solution? - by PowerPC603 - 02.12.2014, 07:53

Forum Jump:


Users browsing this thread: 1 Guest(s)