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

Problem with module


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
STekLyAToR
Member
Join Date: May 2016
Old 08-06-2017 , 12:30   Problem with module
Reply With Quote #1

Hello. After I prepared everything needed (Metamod, AMXX, HL SDK) and compiled module, I faced the problem:

Code:
[AMXX] Plugin "test.amxx" failed to load: Module/library 'tst' required for plugin. Check modules.ini
Also, in output of 'amxx modules' my module has 'newer' status. Is this a sing of bad?

How I requere module from pawn code:
Code:
#if AMXX_VERSION_NUM >= 175
 #pragma reqlib tst
 #if !defined AMXMODX_NOAUTOLOAD
  #pragma loadlib tst
 #endif
#else
 #pragma library tst
#endif
moduleconfig.h
Code:
// Module info
#define MODULE_NAME "Testing"
#define MODULE_VERSION "1.0.0"
#define MODULE_AUTHOR "SNMetamorph"
#define MODULE_URL "nop"
#define MODULE_LOGTAG "TST"
#define MODULE_LIBRARY "tst"
#define MODULE_LIBCLASS "tst"
Compilation are completed without any warnings or errors.
Thanks.
STekLyAToR is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-06-2017 , 12:50   Re: Problem with module
Reply With Quote #2

You have probably compiled your module with a newer SDK (for example 1.8.3) and you are running it on a server with older AMXX (for example 1.8.2) so your module is trying to retrieve APIs that are nonexistent. Either update AMXX on your server or use an older SDK.
klippy is offline
STekLyAToR
Member
Join Date: May 2016
Old 08-06-2017 , 14:41   Re: Problem with module
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
You have probably compiled your module with a newer SDK (for example 1.8.3) and you are running it on a server with older AMXX (for example 1.8.2) so your module is trying to retrieve APIs that are nonexistent. Either update AMXX on your server or use an older SDK.
Yes, by mistake I fork last AMXX git and compile module with it, but testing on 1.8.2.
Thank you.
STekLyAToR is offline
Reply


Thread Tools
Display Modes

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 02:42.


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