Raised This Month: $ Target: $400
 0% 

[SOLVED] Unknown command: amx_shoopslay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-04-2013 , 03:40   [SOLVED] Unknown command: amx_shoopslay
Reply With Quote #1

ive done this in plugin_init()

PHP Code:
register_concmd("amx_shoopslay""CmdShoopSlay"ADMIN_SLAY"<name or #userid or @all>"); 
and this is my console output

PHP Code:
Unknown commandamx_shoopslay 
what doing wrong?

EDIT:

found out it was a runtime error from a hook above these registers which was stopping rest being registered... my bad..

admin can delete this post.

Last edited by Blizzard_87; 03-04-2013 at 03:50. Reason: SOLVED
Blizzard_87 is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 03-04-2013 , 03:58   Re: [SOLVED] Unknown command: amx_shoopslay
Reply With Quote #2

I don't know if it was fixed on the last CS update, but when you register an console command you should return always 1.
__________________
simanovich is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-04-2013 , 04:44   Re: [SOLVED] Unknown command: amx_shoopslay
Reply With Quote #3

Quote:
Originally Posted by simanovich View Post
I don't know if it was fixed on the last CS update, but when you register an console command you should return always 1.
There is nothing to fix, this is just logic, you send a command from client, command that the game does not recognize because it is an amxx command, so if you don't blocl it with amxx when the engine sends it to the game dll, game dll returns "unknown command".


@Blizzard_87
When there is a problem in plugin_init (or in any function), like the callback you registered doesn't exist in the code, the rest of the function is not executed.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 03-04-2013 , 06:58   Re: [SOLVED] Unknown command: amx_shoopslay
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
There is nothing to fix, this is just logic, you send a command from client, command that the game does not recognize because it is an amxx command, so if you don't blocl it with amxx when the engine sends it to the game dll, game dll returns "unknown command".


@Blizzard_87
When there is a problem in plugin_init (or in any function), like the callback you registered doesn't exist in the code, the rest of the function is not executed.
cheers got it
Blizzard_87 is offline
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 21:36.


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