Raised This Month: $51 Target: $400
 12% 

Problems with arrays (adt_array)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Küspert
SourceMod Donor
Join Date: Aug 2006
Location: Germany
Old 10-06-2008 , 15:10   Problems with arrays (adt_array)
Reply With Quote #1

Hi,

I've soem question to arrays (dynamic ones [adt_array.inc]).

I want to create an array with this structure:

Code:
Array
{
   "round"
   {
      "200" => "exec server.cfg"
   }
   "period"
   {
      "3600" => "exec blabla.cfg"
   }
   "time"
   {
      "10:10" => "exec game.cfg"
   }
}
So I create the array with "CreateArray();", right ?

And I can create cells like "round", "period" and "time" with "PushArrayString();", right ?

But how can I create an array in the array or to say it in a different way:

How can I create an array in the cell "round" for example ?

Is this the function "PushArrayArray();"

It's the first time that I work witz array, so it's a bit confusing for me.

But I hope a read the function documentation right.

And another point:

Is there a way to download the function for local working ?

You know school is a bit boring @ the moment ^^

Thanks
Küspert is offline
Send a message via ICQ to Küspert
BAILOPAN
Join Date: Jan 2004
Old 10-06-2008 , 23:16   Re: Problems with arrays (adt_array)
Reply With Quote #2

It sounds like you really want a KeyValues format.
__________________
egg
BAILOPAN is offline
Küspert
SourceMod Donor
Join Date: Aug 2006
Location: Germany
Old 10-08-2008 , 09:16   Re: Problems with arrays (adt_array)
Reply With Quote #3

Ok Tanks for the reply.

Cya
Küspert is offline
Send a message via ICQ to Küspert
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 10:46.


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