AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Register_clcmd not working O_o? (https://forums.alliedmods.net/showthread.php?t=99505)

unSeen 08-06-2009 07:56

[HELP] Register_clcmd not working O_o?
 
Solved, thanks to Arkshine !

Elad.

Arkshine 08-06-2009 08:01

Re: [HELP] Register_clcmd not working O_o?
 
"say " -> "say"
"team_say " -> "say_team"

unSeen 08-06-2009 08:37

Re: [HELP] Register_clcmd not working O_o?
 
not working :<

Arkshine 08-06-2009 08:47

Re: [HELP] Register_clcmd not working O_o?
 
Works for me. You MUST NOT include spaces. "say" and "say_team". NOT "say " and "say_team "

unSeen 08-06-2009 08:58

Re: [HELP] Register_clcmd not working O_o?
 
First of all, thanks for you'r reply.

I know.. i feel stupid that i did that. (also with team_say -> say_team)
but I can't understand why it's still not working for me.
My other plugins that use also register_clcmd("say", "func")
works fine..

what can make it not work? my plugin is much bigger than what I posted here.. I there something else that can disturb?

Arkshine 08-06-2009 09:01

Re: [HELP] Register_clcmd not working O_o?
 
register_clcmd("say", "on_ChatSay")
register_clcmd("say_team", "on_ChatSay")

It's fine, so there are no reason to not work now. Make sure you compile the right plugin and you have replaced the compiled plugin.

unSeen 08-06-2009 09:14

Re: [HELP] Register_clcmd not working O_o?
 
It so wierd.. I'm working with amxx scripting for 8 moths +- and I never seen something like that O_O.

I tried to increase the version and it worked.. i typed amxx plugins and the version was 1.1 and no 1.0. that's mean i'm uploading and compiling the right plugin..

I don't know what to do.. and I don't know what to ask you :> because like you said it seems fine... S:

Very wierd..

Arkshine 08-06-2009 09:23

Re: [HELP] Register_clcmd not working O_o?
 
Post the whole code, I will test.

unSeen 08-06-2009 09:38

Re: [HELP] Register_clcmd not working O_o?
 
thanks again for everything..

Arkshine 08-06-2009 09:55

Re: [HELP] Register_clcmd not working O_o?
 
The reason is simple.

The TeamScore function is defined as "on_TeamScore" but you have written "public on_TeamScored", it means that the whole plugin won't work because of that.

Next time you should see first when you load the server the output of the console. You would have seen something like :

Quote:

Function "on_TeamScore" was not found
[AMXX] Run time error 19 (plugin "Untitled.amxx") - debug not enabled!
[AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini


All times are GMT -4. The time now is 18:28.

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