Register Ham error

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
ArtHa123
Flooderis arba specialistas
Posts: 738
Joined: 2014 Feb 19 18:40

Register Ham error

Post by ArtHa123 »

Code: Select all

L 07/30/2014 - 14:07:44: [AMXX] Plugin "Class.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
modules.ini

Code: Select all

;;;; To enable a module, remove the semi-colon (;) in front of its name.; If it's not here, simply add it its name, one per line.; You don't need to write the _amxx part or the file extension.;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SQL Modules usually need to be enabled manually ;;;; You can have any number on at a time.  Use      ;;;;  amx_sql_type in sql.cfg to specify the default ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;mysql;sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Put third party modules below here.              ;;;; You can just list their names, without the _amxx ;;;;  or file extension.                              ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; These modules will be auto-detected and loaded   ;;;;  as needed.  You do not need to enable them here ;;;;  unless you have problems.                       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;fun;engine;fakemeta;geoip;sockets;regex;nvaulthamsandwich
Kaip sutvarkyti šita? :trollface:
Image

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Register Ham error

Post by laimiukas3 »

ArtHa123 wrote:

Code: Select all

L 07/30/2014 - 14:07:44: [AMXX] Plugin "Class.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
modules.ini

Code: Select all

;;;; To enable a module, remove the semi-colon (;) in front of its name.; If it's not here, simply add it its name, one per line.; You don't need to write the _amxx part or the file extension.;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SQL Modules usually need to be enabled manually ;;;; You can have any number on at a time.  Use      ;;;;  amx_sql_type in sql.cfg to specify the default ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;mysql;sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Put third party modules below here.              ;;;; You can just list their names, without the _amxx ;;;;  or file extension.                              ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; These modules will be auto-detected and loaded   ;;;;  as needed.  You do not need to enable them here ;;;;  unless you have problems.                       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;fun;engine;fakemeta;geoip;sockets;regex;nvaulthamsandwich
Kaip sutvarkyti šita? :trollface:
paziurek ar yra hamdata.ini configs/ directory.
atnaujink build iki naujausio naudok naujausia amxmod metamod ir pekomplikuok plugina naujausiam
Image
Image
Image

User avatar
ArtHa123
Flooderis arba specialistas
Posts: 738
Joined: 2014 Feb 19 18:40

Re: Register Ham error

Post by ArtHa123 »

laimiukas3 wrote:
ArtHa123 wrote:

Code: Select all

L 07/30/2014 - 14:07:44: [AMXX] Plugin "Class.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
modules.ini

Code: Select all

;;;; To enable a module, remove the semi-colon (;) in front of its name.; If it's not here, simply add it its name, one per line.; You don't need to write the _amxx part or the file extension.;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SQL Modules usually need to be enabled manually ;;;; You can have any number on at a time.  Use      ;;;;  amx_sql_type in sql.cfg to specify the default ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;mysql;sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Put third party modules below here.              ;;;; You can just list their names, without the _amxx ;;;;  or file extension.                              ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; These modules will be auto-detected and loaded   ;;;;  as needed.  You do not need to enable them here ;;;;  unless you have problems.                       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;fun;engine;fakemeta;geoip;sockets;regex;nvaulthamsandwich
Kaip sutvarkyti šita? :trollface:
paziurek ar yra hamdata.ini configs/ directory.
atnaujink build iki naujausio naudok naujausia amxmod metamod ir pekomplikuok plugina naujausiam
Yra, bandžiau.
Image

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Register Ham error

Post by laimiukas3 »

ArtHa123 wrote:
laimiukas3 wrote:
ArtHa123 wrote:

Code: Select all

L 07/30/2014 - 14:07:44: [AMXX] Plugin "Class.amxx" failed to load: Plugin uses an unknown function (name "RegisterHam") - check your modules.ini.
modules.ini

Code: Select all

;;;; To enable a module, remove the semi-colon (;) in front of its name.; If it's not here, simply add it its name, one per line.; You don't need to write the _amxx part or the file extension.;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SQL Modules usually need to be enabled manually ;;;; You can have any number on at a time.  Use      ;;;;  amx_sql_type in sql.cfg to specify the default ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;mysql;sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Put third party modules below here.              ;;;; You can just list their names, without the _amxx ;;;;  or file extension.                              ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;   ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; These modules will be auto-detected and loaded   ;;;;  as needed.  You do not need to enable them here ;;;;  unless you have problems.                       ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;fun;engine;fakemeta;geoip;sockets;regex;nvaulthamsandwich
Kaip sutvarkyti šita? :trollface:
paziurek ar yra hamdata.ini configs/ directory.
atnaujink build iki naujausio naudok naujausia amxmod metamod ir pekomplikuok plugina naujausiam
Yra, bandžiau.
modules.ini automatiskai naudoja nereikia ; nuimti. tai sma duok :)
Image
Image
Image

User avatar
ArtHa123
Flooderis arba specialistas
Posts: 738
Joined: 2014 Feb 19 18:40

Re: Register Ham error

Post by ArtHa123 »

Bandžiau ir su ; ir be ;

Code: Select all

#include <amxmodx>#include <engine>#include <fakemeta>#include <hamsandwich> #define PLUGIN "Classes"#define VERSION "1.0"#define AUTHOR "ArtHa" public plugin_init() {    RegisterHam(Ham_Spawn, "player", "Spawn", 1);} public Spawn(id) {    engfunc(EngFunc_SetModel, id, "models/player/vipas/vipas.mdl"); }
Kodo dalis, kurioje naudoju RegisterHam.
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests