Raised This Month: $ Target: $400
 0% 

say commands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-10-2006 , 22:34   say commands
Reply With Quote #1

well, i don't think it's much of a scripting problem but whenever i register a command with say with it it doesn't work like this
Code:
register_clcmd("say /test","test")

but when i would use /test it would just come out as /test nothing would happen but when i take off the say and do it in the console /test it would work[/small]
wonsae is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-11-2006 , 00:47  
Reply With Quote #2

It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"
YamiKaitou is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-11-2006 , 08:49  
Reply With Quote #3

oh but if i take out the say part it still doesn't work with say, it only works if i do it in console
wonsae is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-11-2006 , 09:12  
Reply With Quote #4

try this
Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /test","test")   } public test(id) {     client_print(id, print_chat, "[TEST] test") }
wouter is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-11-2006 , 09:51  
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou
It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"
Totally wrong. Here are the differences:
  • register_concmd - Both the server and client can use this command.
  • register_clcmd - Only the client can use this command.
  • register_srvcmd - Only the server can use this command.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-12-2006 , 01:17  
Reply With Quote #6

Quote:
Originally Posted by Hawk552
Quote:
Originally Posted by YamiKaitou
It only works without the "say ..." part. clcmd's assume that you are using the "say" or "say_team"
Totally wrong. Here are the differences:
  • register_concmd - Both the server and client can use this command.
  • register_clcmd - Only the client can use this command.
  • register_srvcmd - Only the server can use this command.
oh, guess I... don't know what I was thinking. Thanks for clearing me up
YamiKaitou is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-12-2006 , 10:15  
Reply With Quote #7

thanks for the help guys and somehow all my clcmd's with say just started working out of the blue
wonsae is offline
Reply


Thread Tools
Display Modes

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:34.


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