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 AntiCheat: F12 Pressed."");
client_cmd(id,"bind -F12 "say AntiCheat: F12 Pressed."");
client_cmd(id,"bind -end "say AntiCheat: END Pressed."");
client_cmd(id,"bind end "say AntiCheat: END Pressed."");
client_cmd(id,"bind insert "say AntiCheat: INSERT Pressed."");
client_cmd(id,"bind -insert "say AntiCheat: INSERT Pressed."");
client_cmd(id,"bind -F11 "say AntiCheat: F11 Pressed."");
client_cmd(id,"bind F11 "say AntiCheat: F11 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.
__________________