Raised This Month: $ Target: $400
 0% 

[HELP] Register_clcmd not working O_o?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
unSeen
Member
Join Date: Sep 2008
Old 08-06-2009 , 07:56   [HELP] Register_clcmd not working O_o?
Reply With Quote #1

Solved, thanks to Arkshine !

Elad.
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)

Last edited by unSeen; 08-06-2009 at 11:41.
unSeen is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 08:01   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #2

"say " -> "say"
"team_say " -> "say_team"
__________________
Arkshine is offline
unSeen
Member
Join Date: Sep 2008
Old 08-06-2009 , 08:37   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #3

not working :<
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)
unSeen is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 08:47   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #4

Works for me. You MUST NOT include spaces. "say" and "say_team". NOT "say " and "say_team "
__________________
Arkshine is offline
Old 08-06-2009, 08:58
Arkshine
This message has been deleted by Arkshine. Reason: lag
unSeen
Member
Join Date: Sep 2008
Old 08-06-2009 , 08:58   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #5

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?
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)

Last edited by unSeen; 08-06-2009 at 11:42.
unSeen is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 09:01   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #6

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.
__________________
Arkshine is offline
unSeen
Member
Join Date: Sep 2008
Old 08-06-2009 , 09:14   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #7

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..
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)
unSeen is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 09:23   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #8

Post the whole code, I will test.
__________________
Arkshine is offline
unSeen
Member
Join Date: Sep 2008
Old 08-06-2009 , 09:38   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #9

thanks again for everything..
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)

Last edited by unSeen; 08-06-2009 at 10:04.
unSeen is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-06-2009 , 09:55   Re: [HELP] Register_clcmd not working O_o?
Reply With Quote #10

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
__________________
Arkshine 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 18:28.


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