dynamic array in amxx, what else can i use instead?
so i heard that you can't use dynamic arrays here, the question is what to use instead? i need a dynamic one demensional integer array like
PHP Code:
|
Re: dynamic array in amxx, what else can i use instead?
Use the CellArrays provided with AMXX.
|
Re: dynamic array in amxx, what else can i use instead?
that would be troublesome =\
can we edit cells in CellArrays? =\ wouldn't it be better if i just limit my int array with a big size? |
Re: dynamic array in amxx, what else can i use instead?
Show me what you are trying to do and I'll show you how to do it with CellArrays.
A large array is unnecessary. |
Re: dynamic array in amxx, what else can i use instead?
i know that can be done with cellarray but with a much longer way (isn't that a resource-wasting way also?)
i need to add 1 to all cells from specific cell in the middle, and i need to access cell values by their position, with cellarray you have to get data from cell, then read it, why large array is unnecesarry? it doesn't take much or does it? a 10 000 empty cells array won't do much |
Re: dynamic array in amxx, what else can i use instead?
A 10,000 cell array... are you kidding me?
|
Re: dynamic array in amxx, what else can i use instead?
why not? =\
|
Re: dynamic array in amxx, what else can i use instead?
Show me what you are using it for.
|
Re: dynamic array in amxx, what else can i use instead?
A lot of people say to use the dynamic cell arrays provided with amxx, but I'm not exactly sure how to use them effectively, because I can't find any tutorials.
:( For starters, I just want to have an array I can keep putting things in. Can I do this? PHP Code:
PHP Code:
Edit: So I have it doing what I want it to now, but I still wish there was a tutorial, because I know I'm missing out on a lot of possible functionality with it. ... If I have an array for each player, will cleararray remove all the cells that pushcell has created, or should I destroy the array and then make a new one on player connection? |
Re: dynamic array in amxx, what else can i use instead?
amxmodx\scripting\testsuite\arraytest.sma provides some examples about Array use(set/get values/sort...)
|
| All times are GMT -4. The time now is 15:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.