Quote:
Originally Posted by skz
Copy the error that appears on your compiler
|
here is all the mod:
PHP Code:
#include <amxmodx>
#include <engine>
new g_bBhop[ 33 ]
new szName[ 33 ]
public plugin_init()
{
register_clcmd("say /enablebhop","EnableCommand")
register_clcmd("say /disablebhop","DisableCommand")
}
public EnableCommand(id)
{
g_bBhop[ id ] = true
get_user_name(id, szName, charsmax(szName))
ColorChat (id, RED, "^03 %s ^04 U Enabled ^03 Bhop", szName)
}
public DisableCommand(id)
{
g_bBhop[ id ] = false
get_user_name(id, szName, charsmax(szName))
ColorChat (id, RED, "^03 %s ^04 U Disabled ^03 Bhop", szName)
}
//don't put messages here.
public client_PreThink(id)
{
if(is_user_alive(id))
{
if(g_bBhop [ id ] && get_user_flags(id) & ADMIN_IMMUNITY)
{
new oldbuttons = get_user_oldbutton(id);
oldbuttons &= ~IN_JUMP;
entity_set_int(id, EV_INT_oldbuttons, oldbuttons);
}
}
}
and here the errors:
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Undefined symbol "ColorChat" on line 17
Warning: Expression has no effect on line 17
Warning: Expression has no effect on line 17
Error: Expected token: ";", but found ")" on line 17
Error: Invalid expression, assumed zero on line 17
Error: Too many error messages on one line on line 17
Compilation aborted.
4 Errors.
Could not locate output file C:\Users\eviatar\Desktop\BhopForAdmins.amx (compile failed).