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

Writing an module.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 22:35.


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