Raised This Month: $ Target: $400
 0% 

Unknown Command keeps comming up -_-'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 19:47   Unknown Command keeps comming up -_-'
Reply With Quote #1

OMG this is the friggen fourth time Im posting on this stupid topic on the menu map crap.... now, I will give you the link to the other three sites, and can you identify what is wrong with them? I even just simply saved the plugin, just as I was given, and it kept on comming up as "Unknown Command." Yes I added the plugin to the plugins.ini, and made a myplugin.amxx

1) http://forums.alliedmods.net/showthread.php?t=26849
2) http://forums.alliedmods.net/showthread.php?t=26899
3) http://forums.alliedmods.net/showthread.php?t=26909

now I am MORE then 100000000% sure that what these people are doing, nothing can get better then this, but when I go to console (yes this is obviously my server Im hosting and I have full admin) and i type in the commands, it says Unknown Command.......................



------- for the last one, the only thing i changed was:

Code:
new g_szSkins[MAX_SKINS][] = {     "Skin 1",     "Skin 2",     "Skin 3",     "Skin 4" } new g_szSkinFiles[MAX_SKINS][] = {     "skin_1.mdl",     "skin_2.mdl",     "skin_3.mdl",     "skin_4.mdl" }

to this:

Code:
new g_szSkins[MAX_SKINS][] = {     "Brass Knuckels",     "Dildo",     "Electric Guitar",     "Katana" } new g_szSkinFiles[MAX_SKINS][] = {     "models/brassknuckels/v_knife_brassknuckels.mdl",     "models/dildo/v_knife_dildo.mdl",     "models/electricguitar/v_knife_electricguitar.mdl",     "models/katana/v_knife_katana.mdl" }

and I precached these models as well.. the compile went great, but the comand isn't working
-=*HQz=-=mAster nOob=- is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2006 , 20:12  
Reply With Quote #2

Check your logs. Do you have the engine module loaded?

Also, I have edited my script to be sure that it isn't a missing section of code. Please try mine again.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 20:18  
Reply With Quote #3

; ----------------------------------------------------
; Engine - provides engine functions core to Half-Life
; ----------------------------------------------------
engine_amxx_i386.so
engine_amxx.dll
engine_amxx_amd64.so

like that right? yes I have it like that, and I also have 2 other plugins that work perfectly:

1) amx_super.amxx
2) aim_practice.amxx

all the commands work when I type in a command from these plugins. Also, many WILL know this, that amx_super.amxx runs on amxmodx, amxmisc, and engine (which are the modules needed to run the script that I am having troubles with) AS WELL AS cstrike and fun





also just for a try, I plugged in:

Code:
register_concmd("amx_skinmenu","fnSkinMenu",ADMIN_LEVEL_H,"Changes your knife skin.")

in the public plugin_init() section, just adding this command, not deleting anything, and trying again, and it still says that amx_skinmenu is an unknown command.. To make matters worse, when I type in /skinmenu and press enter, or go to console and type in "say /skinmenu" it just goes through as if i typed something during game play....
-=*HQz=-=mAster nOob=- is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2006 , 20:31  
Reply With Quote #4

Check your logs.

Give me the result of amx_plugins and amxx plugins (both in server console).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 20:35  
Reply With Quote #5

Quote:
Originally Posted by Hawk552
Check your logs.

Give me the result of amx_plugins and amxx plugins (both in server console).
sorry you lost me there lol

1) check logs for?
2) how do i find results for ... ?
-=*HQz=-=mAster nOob=- is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2006 , 20:37  
Reply With Quote #6

In your server console type in the commands.

Look your logs for anything out of the ordinary.

Use common sense.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 20:42  
Reply With Quote #7

ooo ok ok .. when you said logs I thought that you meant go to amxmodx/config file and check out the stuff there thats why I got lost -_-' lol sorry, well anyways, heres what the log said:

L 04/12/2006 - 19:402: Function "fnSkinMenuHandle" was not found
L 04/12/2006 - 19:402: [AMXX] Run time error 19 (plugin "extras.amxx") - debug not enabled!
L 04/12/2006 - 19:402: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

so I'll try that right now and update you with what happens
-=*HQz=-=mAster nOob=- is offline
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 20:49  
Reply With Quote #8

ok, so in the plugins.ini, after the name, I write debug, so its:

extras.amxx debug

I did that, and then i saved, restarted, tried again, still didn't work. I went back and checked my log and heres what it said:

L 04/12/2006 - 19:48:12: Function "fnSkinMenuHandle" was not found
L 04/12/2006 - 19:48:12: [AMXX] Displaying debug trace (plugin "extras.amxx")
L 04/12/2006 - 19:48:12: [AMXX] Run time error 19: function not found
L 04/12/2006 - 19:48:12: [AMXX] [0] extras.sma::plugin_init (line 32)
-=*HQz=-=mAster nOob=- is offline
-=*HQz=-=mAster nOob=-
Junior Member
Join Date: Mar 2006
Old 04-11-2006 , 21:20  
Reply With Quote #9

L 04/12/2006 - 19:48:12: Function "fnSkinMenuHandle" was not found
L 04/12/2006 - 19:48:12: [AMXX] Displaying debug trace (plugin "extras.amxx")
L 04/12/2006 - 19:48:12: [AMXX] Run time error 19: function not found
L 04/12/2006 - 19:48:12: [AMXX] [0] extras.sma::plugin_init (line 32)



for this, I looked into it, and i found that when you had the command for bringing up the menu, you had:

Code:
public fnSkinHandleMenu (id,iKey)

instead of

Code:
public fnSkinMenuHandle (id,iKey)

the fnSkinMenuHandle is what you have in:

Code:
register_menucmd(register_menuid("mSkinMenu"),g_iKeys,"fnSkinMenuHandle")

but even after changing this, saving, recompiling, copy and paste into the plugins folder, I tried once again, and sadly it didn't work. I debugged it and in logs, for some reason, the same problem came up :

L 04/12/2006 - 20:19:25: Function "fnSkinMenuHandle" was not found
L 04/12/2006 - 20:19:25: [AMXX] Displaying debug trace (plugin "extras.amxx")
L 04/12/2006 - 20:19:25: [AMXX] Run time error 19: function not found
L 04/12/2006 - 20:19:25: [AMXX] [0] extras.sma::plugin_init (line 32)
-=*HQz=-=mAster nOob=- is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2006 , 21:28  
Reply With Quote #10

Try the new version I have edited in. It's in the original thread.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 16:48.


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