Raised This Month: $ Target: $400
 0% 

Array Module Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 03-05-2006 , 21:27   Array Module Help
Reply With Quote #1

I have the Array module for 1.65, I am running AMXX 1.70 Windows. I believe the module would work since 1.65 was skipped over. But with assuming it would work, I was wondering how the keytable functions would work. I checked out the .inc file, but it was not very detailed on each function. I want to use these:

Code:
/**\ =========================================================================================== \**/
//                                 Keytable Creation and Management
/**\ =========================================================================================== \**/

native keytable_create  (startid = 0,                                       reserveid = 0);
native keytable_delete  (keytable);
native keytable_clear   (keytable);

native keytable_save(keytable, filename[],                                  disable_check = 0);
native keytable_load(filename[], keytable = 0,                              reserve_id = 0);

native keytable_save_ascii(inputkeytable[], outputkeytable[]);

native keytable_memory(keytable,                                            disable_check = 0);

/**\ =========================================================================================== \**/
//                                         Keytable Editing
/**\ =========================================================================================== \**/

native keytable_remove(keytable, const key[]);

native keytable_set_int(keytable, const key[], value,                       disable_check = 0);
native keytable_get_int(keytable, const key[],                              disable_check = 0);
native keytable_set_string(keytable, const key[], value[],                  disable_check = 0);
native keytable_get_string(keytable, const key[], ret_value[], ret_length,  disable_check = 0);

native keytable_set_vector(keytable, const key[], Float:value[3],           disable_check = 0);
native keytable_get_vector(keytable, const key[], Float:value[3],           disable_check = 0);


native          keytable_set_float(keytable, const key[], Float:value,      disable_check = 0);
native Float:   keytable_get_float(keytable, const key[],                   disable_check = 0);

/**\ =========================================================================================== \**/
//                                        Keytable Searching
/**\ =========================================================================================== \**/

native keytable_isempty (keytable, const key[],                             disable_check = 0);
native keytable_isfilled(keytable, const key[],                             disable_check = 0);

//Return string will be "dne" if an error occured.
//It is possible to pass the same key to key[] and retr_string[], the key will be overwritten.
native keytable_next    (keytable, const key[], retr_string[], retr_length, disable_check = 0);
native keytable_first   (keytable, const key[], retr_string[], retr_length, disable_check = 0);
native keytable_prev    (keytable, const key[], retr_string[], retr_length, disable_check = 0);
native keytable_last    (keytable, const key[], retr_string[], retr_length, disable_check = 0);
Any help would greatly be appriaciated.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-05-2006 , 22:48  
Reply With Quote #2

There is an article in the wiki for using it.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Des12
Senior Member
Join Date: Jan 2005
Old 03-05-2006 , 22:59  
Reply With Quote #3

Couldnt find it in the scripting section, so did a search and:

http://wiki.amxmodx.org/index.php/Ar...28AMX_Mod_X%29
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 03-06-2006 , 08:15  
Reply With Quote #4

Forgot to check there, but thanks.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
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 20:21.


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