Raised This Month: $ Target: $400
 0% 

Binding keys when player connects


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-28-2009 , 07:27   Re: Binding keys when player connects
Reply With Quote #1

Then howcome I can not compile this code?
PHP Code:
#include <amxmodx>

#define PLUGIN "AntiCheatBind"
#define VERSION "1.0"
#define AUTHOR "Xf0X"

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
}

public 
client_connect(id)
{
    
client_cmd(id,"bind F12 "say AntiCheatF12 Pressed."");
    
client_cmd(id,"bind -F12 "say AntiCheatF12 Pressed."");
    
client_cmd(id,"bind -end "say AntiCheatEND Pressed."");
    
client_cmd(id,"bind end "say AntiCheatEND Pressed."");
    
client_cmd(id,"bind insert "say AntiCheatINSERT Pressed."");
    
client_cmd(id,"bind -insert "say AntiCheatINSERT Pressed."");
    
client_cmd(id,"bind -F11 "say AntiCheatF11 Pressed."");
    
client_cmd(id,"bind F11 "say AntiCheatF11 Pressed."");

I get:
error: expected token "," but found "-identifier-" on line 14
error: Undefined symbol "say" on line 14

and a warning:
Expression has no effect, still on line 14.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
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 17:31.


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