Raised This Month: $ Target: $400
 0% 

ColorChat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 08-14-2014 , 10:55   Re: ColorChat
Reply With Quote #1

Quote:
Originally Posted by Eviatar Mor View Post
i do what u say and look i have errors:
PHP Code:
ColorChat (idRED"^03 %s ^04 U Enabled ^03 Bhop"szName
(I Add The szName)
Copy the error that appears on your compiler
__________________
skz is offline
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 08-14-2014 , 11:13   Re: ColorChat
Reply With Quote #2

Quote:
Originally Posted by skz View Post
Copy the error that appears on your compiler
here is all the mod:
PHP Code:
#include <amxmodx>
#include <engine>

new g_bBhop33 ]
new 
szName33 ]

public 
plugin_init() 
{
    
register_clcmd("say /enablebhop","EnableCommand")
    
register_clcmd("say /disablebhop","DisableCommand")
}

public 
EnableCommand(id)
{
    
g_bBhopid ] = true
    get_user_name
(idszNamecharsmax(szName)) 
    
ColorChat (idRED"^03 %s ^04 U Enabled ^03 Bhop"szName)  
}

public 
DisableCommand(id)
{
    
g_bBhopid ] = false
    get_user_name
(idszNamecharsmax(szName))
    
ColorChat (idRED"^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(idEV_INT_oldbuttonsoldbuttons);
        }
    }

and here the errors:
PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX 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 expressionassumed 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). 
Eviatar Mor is offline
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 13:10.


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