AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [SOLVED] Unknown command: amx_shoopslay (https://forums.alliedmods.net/showthread.php?t=209939)

Blizzard_87 03-04-2013 03:40

[SOLVED] Unknown command: amx_shoopslay
 
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.

simanovich 03-04-2013 03:58

Re: [SOLVED] Unknown command: amx_shoopslay
 
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.

ConnorMcLeod 03-04-2013 04:44

Re: [SOLVED] Unknown command: amx_shoopslay
 
Quote:

Originally Posted by simanovich (Post 1906156)
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.

Blizzard_87 03-04-2013 06:58

Re: [SOLVED] Unknown command: amx_shoopslay
 
Quote:

Originally Posted by ConnorMcLeod (Post 1906175)
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 :P


All times are GMT -4. The time now is 21:36.

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