AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   register_clcmd (https://forums.alliedmods.net/showthread.php?t=11647)

stigma 03-25-2005 11:40

register_clcmd
 
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

knekter 03-25-2005 12:10

should work
 
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 }

stigma 03-25-2005 12:27

Okay thx, now i just get error 017: undefined symbol "register_clcmd" (line 12)

xeroblood 03-25-2005 13:17

you spelled 'register' wrong in your code... simple type-o

stigma 03-25-2005 13:25

Ooh sorry! :oops: My mistake!!!

xeroblood 03-25-2005 13:33

all good!! Happens to us all from time to tme!!
:D

stigma 03-25-2005 13:38

Hehe okay :D - 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?


All times are GMT -4. The time now is 09:55.

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