View Single Post
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-17-2004 , 19:47  
Reply With Quote #12

Ok.. this is the code im using:
Code:
register_clcmd("say /noclip","toggle_noclip",ACCESS_NOCLIP,"Toggle noclip") // This gets called with say /noclip USERNAME         read_argv(1,arg,31)         new pid = cmd_target(id,arg,1)         if (!pid) {             console_print(id,"[NSX] No such user")             return PLUGIN_HANDLED         }

Which mod are you running this on? Maybe its something that sends messages in a weird way?

You need to do some debugging stuff
After "read_argv(1,name,31) " put console_print(id,"%s",name)
Then make sure the name it says is the one you typed
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline