[Tutorial] Sparse arrays
#7

Updated some things in the main post, check it out!

Quote:
Originally Posted by ******
Посмотреть сообщение
[...]
Ah, I'm always getting confused between those two, thanks for clearing that up! If I recall correctly, functions allocate memory to the stack upon being called, and "return" simply clears it from the stack.

Those "dynamic memory" scripts still do infact take up memory, but since they're coded in C++, I'm not entirely sure, I'll have to read up on it since I never worked with C++ before.

Regarding the MAX_PLAYERS * 20 thing, I actually wrote a similar include that allows the possibility to add strings to a "packed list array" without any indexes a few days ago. However I can't seem to find it!

Gonna check out y_jaggedarray for sure, I actually checked it out last year but that was when I barely understand anything haha.
Reply


Messages In This Thread
Sparse arrays - by Emmet_ - 10.12.2013, 19:12
AW: Sparse arrays - by BigETI - 10.12.2013, 19:40
Re: Sparse arrays - by Emmet_ - 10.12.2013, 19:51
Re: Sparse arrays - by Patrick - 10.12.2013, 20:01
Re: Sparse arrays - by iZN - 10.12.2013, 20:08
Re: Sparse arrays - by Luis- - 10.12.2013, 21:41
Re: Sparse arrays - by Emmet_ - 10.12.2013, 23:19
Re: Sparse arrays - by Emmet_ - 10.12.2013, 23:42

Forum Jump:


Users browsing this thread: 2 Guest(s)