AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Array Module Help (https://forums.alliedmods.net/showthread.php?t=25004)

Charr 03-05-2006 21:27

Array Module Help
 
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.

Twilight Suzuka 03-05-2006 22:48

There is an article in the wiki for using it.

Des12 03-05-2006 22:59

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

http://wiki.amxmodx.org/index.php/Ar...28AMX_Mod_X%29

Charr 03-06-2006 08:15

Forgot to check there, but thanks.


All times are GMT -4. The time now is 20:21.

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