Raised This Month: $ Target: $400
 0% 

register_clcmd("setinfo" .. Not Working !!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ÜnLoCo
Member
Join Date: Dec 2009
Location: 35.77N, 10.82E
Old 05-29-2010 , 17:49   register_clcmd("setinfo" .. Not Working !!
Reply With Quote #1

Hello Guys
why is this code not working plz

Code:
public plugin_init()
{
   register_plugin(PLUGIN, VERSION, AUTHOR);
   register_clcmd("setinfo","setinfo")
}

public setinfo(id) {
    new arg[32]
    read_argv(1,arg,31)
    client_print(id,print_console,"%s",arg)
    return PLUGIN_CONTINUE
}
i tried register_clcmd("setinf","setinfo") for example and it worked (that was just for trying)

console:
Code:
setinf foo
foo
i want to catch when the user changes his "fb" key! to check it
so i tried register_clcmd("setinfo fb","setinfo") also and it didn't work !

anybody got an idea !
help .. thank you
__________________

Last edited by ÜnLoCo; 05-29-2010 at 17:53.
ÜnLoCo is offline
 



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 05:21.


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