Raised This Month: $ Target: $400
 0% 

register_clcmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 11:40   register_clcmd
Reply With Quote #1

Got a little problem with a client command.

Code:
#include <amxmodx> public SayTest() {   new message[64]   format(message,63,"TEST FFS")     set_hudmessage(100, 100, 100, 0.5, 0.5, 0, 6.0, 12.0, 1, 1, 1)   show_hudmessage(id,message) } public plugin_init(){   reigster_clcmd("say test","SayTest","0","Tester")   return PLUGIN_CONTINUE }

Got 4 errors when compile:

(Line 8 ) Error 017: undefined symbol "id"
(Line 8 ) Error 001: expected token: ";", but found ">"
(Line 8 ) Error 029: invalid expression, assumed zero
(Line 8 ) Fatal error 107: too many error messages on one line
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 03-25-2005 , 12:10   should work
Reply With Quote #2

Code:
#include <amxmodx> public SayTest(id) {   new message[64]   format(message,63,"TEST FFS")     set_hudmessage(100, 100, 100, 0.5, 0.5, 0, 6.0, 12.0, 1, 1, 1)   show_hudmessage(id,message) } public plugin_init(){   reigster_clcmd("say /test","SayTest",0,"Tester")   return PLUGIN_CONTINUE }
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 12:27  
Reply With Quote #3

Okay thx, now i just get error 017: undefined symbol "register_clcmd" (line 12)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-25-2005 , 13:17  
Reply With Quote #4

you spelled 'register' wrong in your code... simple type-o
xeroblood is offline
Send a message via MSN to xeroblood
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 13:25  
Reply With Quote #5

Ooh sorry! My mistake!!!
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-25-2005 , 13:33  
Reply With Quote #6

all good!! Happens to us all from time to tme!!
xeroblood is offline
Send a message via MSN to xeroblood
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 13:38  
Reply With Quote #7

Hehe okay - Btw, can you tell me how i can find a killers hp/ap and all the other stuff, as you see in the /hp command?
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
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 09:55.


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