Raised This Month: $ Target: $400
 0% 

Register Native


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexander.3
Junior Member
Join Date: May 2009
Old 01-31-2013 , 15:58   Register Native
Reply With Quote #1

Hello all, what could be wrong?

С++ code:
PHP Code:
static cell AMX_NATIVE_CALL nt_testAMX *amxcell *params
{
    return 
10;
}



AMX_NATIVE_INFO nt_test_Exports[] = {
    { 
"nt_test"nt_test },

    { 
NULLNULL }
};

void OnAmxxAttach()
{
    
MF_AddNatives(nt_test_Exports);

Pawn code:
PHP Code:
native nt_test()

public 
plugin_init() {
    
register_clcmd("say /native""natives")
}

public 
natives() {
    
client_print(0print_chat"%d"nt_test())

Error:
Load fails: Plugin uses an unknown function (name "nt_test") - check your modules.ini.

MetaList:
Func RUN - func_amxx. v1.0 pl1 ANY ANY

Last edited by Alexander.3; 01-31-2013 at 16:00.
Alexander.3 is offline
Send a message via ICQ to Alexander.3 Send a message via Skype™ to Alexander.3
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-31-2013 , 16:10   Re: Register Native
Reply With Quote #2

OnAmxxAttach - uncomment from moduleconfig.h
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Alexander.3
Junior Member
Join Date: May 2009
Old 01-31-2013 , 16:14   Re: Register Native
Reply With Quote #3

Really, thank you!
Alexander.3 is offline
Send a message via ICQ to Alexander.3 Send a message via Skype™ to Alexander.3
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 15:06.


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