AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Register Ham error (https://forums.alliedmods.net/showthread.php?t=245246)

ArthHa 07-30-2014 08:11

Register Ham error
 
Code:

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:

;;;
; 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
;nvault
hamsandwich


How to fix it?

Eagle07 07-30-2014 08:17

Re: Register Ham error
 
What is your Amxmodx Version ?

HamletEagle 07-30-2014 08:45

Re: Register Ham error
 
Do you have hamdata.ini in configs folder ?

ArthHa 07-30-2014 10:17

Re: Register Ham error
 
Quote:

Originally Posted by Eagle07 (Post 2176172)
What is your Amxmodx Version ?

1.8.3

Quote:

Originally Posted by HamletEagle (Post 2176181)
Do you have hamdata.ini in configs folder ?

Yep, i have it

^SmileY 07-30-2014 10:33

Re: Register Ham error
 
The same error, check again: https://forums.alliedmods.net/showthread.php?p=667630

ArthHa 07-30-2014 10:54

Re: Register Ham error
 
The thing is that, i have hamdata.ini ;D

^SmileY 07-30-2014 11:03

Re: Register Ham error
 
Quote:

Originally Posted by ArthHa (Post 2176227)
The thing is that, i have hamdata.ini ;D

The correct file? soo..

rcon version
amxx version
amxx modules

ArthHa 07-30-2014 11:23

Re: Register Ham error
 
WEll, im using latest version of everything. :D

^SmileY 07-30-2014 11:38

Re: Register Ham error
 
Quote:

Originally Posted by ArthHa (Post 2176245)
WEll, im using latest version of everything. :D

This will help alot, but i think i need to using my:

http://ritinhablog.files.wordpress.c...2010115722.jpg

ArthHa 07-30-2014 12:22

Re: Register Ham error
 
Quote:

Originally Posted by .Dare Devil. (Post 2176249)
Here's a example why does the error come:
register_ham( ham_item, "myfunc" )
myfunc() doesn't exists.

RegisterHam(Ham_Spawn, "player", "FnHamSpawn", 1);
public FnHamSpawn(id)
{

}

Well its exist

Quote:

Originally Posted by ^SmileY (Post 2176255)
This will help alot, but i think i need to using my:

http://ritinhablog.files.wordpress.c...2010115722.jpg


1.8.3 amxmodx
Metamod 1.21p37


All times are GMT -4. The time now is 13:15.

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