View Single Post
Author Message
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 01-10-2017 , 10:15   Writing an module.
Reply With Quote #1

Hello guys, i have someeee questions, i'm realy noob so be patient with me

ok

1 . - amxmodx SDK and HLSDK , Microsoft Visual Studio are the only things i need to write a module ? ( i have also metamod sdk ).


2. For compiling the following code ( i'm trying to make a simple native just for learn ) i don't need metamod sdk no ? i read some tut. but are they very confusing , i learn more when i talk with people so :

PHP Code:
#include "amxxmodule.h"


// Empty an array, like array_set,  but that's require just the array: empty_array( Array )
static cell AMX_NATIVE_CALL empty_array(AMX *amxcell *params)
{
    
cell *Arr get_amx_addr(amxparams[1]);

    for (
int i 0i<sizeof(Arr); i++)
    {
        
Arr[i] = 0;
    }
}

AMX_NATIVE_INFO EmptyArray_Natives[] =
{
    { 
"empty_array" ,empty_array };
    { 
NULL,        ,NULL }
};

void OnAmxxAttach(EmptyArray_Natives)
{
    
MF_AddNatives(EmptyArray_Natives);


So ... i'm very confused if somebody can give me some answers
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor