Raised This Month: $ Target: $400
 0% 

dynamic array in amxx, what else can i use instead?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-21-2009 , 21:06   Re: dynamic array in amxx, what else can i use instead?
Reply With Quote #1

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:
Array:CoolArray=ArrayCreate(1,1
And then just keep putting them in with

PHP Code:
ArrayPushCell(Array,input


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?
__________________

Last edited by Bad_Bud; 08-21-2009 at 21:37.
Bad_Bud is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode