Raised This Month: $ Target: $400
 0% 

Error with "ColorChat"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GaBuTo
Junior Member
Join Date: Nov 2010
Old 03-24-2014 , 18:11   Error with "ColorChat"
Reply With Quote #1

I've problem with this script! Help me!

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <colorchat>

#define PLUGIN "Menu"
#define VERSION "1.5"
#define AUTHOR "Sonic.-*"

#define KEYSMENU (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)

#define szPrefix "[CrazyGames]"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /menu""menu_principal")
    
register_clcmd("say /reglas""menu_reglas")
    
register_clcmd("say /compras","menu_ventas")
    
register_clcmd("jointeam2""menu_principal")    
    
register_clcmd("jointeam1""menu_principal")
    
register_clcmd("jointeam""menu_principal")
    
register_clcmd("chooseteam""menu_principal")
    
    
//register Client
    
    
register_event("HLTV" "RoundStart" "a""1=0""2=0")
}
 



public 
RoundStart( )
{
    
set_task3.0"Mensage" )
}

public 
Mensage()
{
    
ColorChat(0GREEN"^3[%s]^1 Acuerdate de respetar las ^4reglas^1 para no ser sancionado."szPrefix)
    
ColorChat(0GREEN"^3[%s]^1 Type /menu para abrir de nuevo el ^4menu.",szPrefix)
}

public 
menu_principal(id)
{
    new 
Menu menu_create("\r[\wMenu Principal \d|| \wCrazyGames\r]""mostrar_extra")  
    
menu_additem(Menu"\y Informacion" "1"0)
    
menu_additem(Menu"\w Reglas"       "2"0)
    
menu_additem(Menu"\w Extras"    ,"3"0)
    
menu_additem(Menu"\w Ventas"    ,"4"0)
    
menu_additem(Menu"\w Contactos" ,"5"0)

    
menu_setprop(Menu,MPROP_EXITNAME,"Salir")
    
menu_setprop(MenuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idMenu0)
    return 
PLUGIN_CONTINUE
    
}

public 
mostrar_extra(idmenuitem)
{
    
    if(
item == MENU_EXIT) return PLUGIN_HANDLED 
    
    
new data[6], iName[64], accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    
    switch(
str_to_num(data))
    {
        
    
    case 
1menu_info(id)
    case 
2menu_reglas(id)
    case 
3menu_extras(id)
    case 
4menu_ventas(id)
    case 
5menu_contactos(id)

     }
    return 
PLUGIN_HANDLED;
}

public 
menu_contactos(id)
{
    new 
szMenu512 ], iLen
    
    iLen 
+= formatexszMenuiLen ], charsmaxszMenu ) - iLen"\y================================^n\w [\rCrazyGames\w]^n\y  Contacto^n\d ^n\y================================^n^n" );

    
         
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Skype] \wrafa.newells74 \r[Ventas] ^n");           
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Skype] \wtobias.colombo2 \r[Ventas]^n");    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Skype] \wluchito.sk8 \r[Consultas]^n");     
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Skype] \wenano.cs2 \r[Consultas] ^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Foro] \wProximamente^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \r[Pagina FB] \wwww.Fb/CrazyGames^n^n")
    ;
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"^n\r9.\w Volver^n" );
    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"^n\r9.\w Salir^n" );
    
    
    
show_menuidKEYSMENUszMenu_"Menu_contactos" ); // register_menu( "Menu_REGLAS", KEYSMENU, "MREGLAS")
}


public 
contacto(id key)
{
    switch(
key)
    {
        
/*case 0:
        case 1: 
        case 2:
        case 3:
        case 4:
        case 5:*/
        
case 8menu_principalid );
    }
    
    return 
PLUGIN_HANDLED;
}



public 
menu_info(id)
{
    new 
szMenu512 ], iLen
    
    iLen 
+= formatexszMenuiLen ], charsmaxszMenu ) - iLen"\y================================^n\w [\rCrazyGames\w]^n\y  Informacion^n\d ^n\y================================^n^n" );

    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wModo Hns-C21^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wCts : Deven Matar a Los Terroristas .^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wLos Cts Solo tienen Cuchillo.^n");    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wLos Tt's Deven Escapar de Los Cts^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wSaltando los Bloques del Mapa^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wY Ganando la ronda.^n^n")
    ;
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"^n\r9.\w Volver^n" );
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r0.\w Salir del menu " );
    
    
show_menuidKEYSMENUszMenu_"Menu_INFO" ); // register_menu( "Menu_REGLAS", KEYSMENU, "MREGLAS")
}


public 
MINFO(id key)
{
    switch(
key)
    {
        
/*case 0:
        case 1: 
        case 2:
        case 3:
        case 4:
        case 5:*/
        
case 8menu_principalid );
    }
    
    return 
PLUGIN_HANDLED;
}

public 
menu_ventas(id)
{
    new 
szMenu512 ], iLen
    
    iLen 
+= formatexszMenuiLen ], charsmaxszMenu ) - iLen"\y================================^n\w [\rCrazyGames\w]^n\y  Ventas^n\d ^n\y================================^n^n" ); 

    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Comun = \r15$^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Full  = \r20$.^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Full+SSlot Reservado = \r25$.^n");    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Full+SR+Ban/Local= \r45$^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Comun en todos los (SV) = \r65$^n");    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wAdmin Full en todos los (SV) = \r75$^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wHay 5(SV)Server Disponibles-Proximante mas (SV)^n")
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \dEstaremos Ofreciendo mas Ofertas :)!^n^n")
    ;
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"^n\r8.\w Volver^n" );
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r0.\w Salir del menu " );
    
    
show_menuidKEYSMENUszMenu_"Menu_VENTAS" ); // register_menu( "Menu_REGLAS", KEYSMENU, "MREGLAS")
}


public 
MVENTAS(id key)
{
    switch(
key)
    {
        
/*case 0:
        case 1: 
        case 2:
        case 3:
        case 4:
        case 5:*/
        
case 8menu_principalid );
    }
    
    return 
PLUGIN_HANDLED;
}

public 
menu_reglas(id)
{
    new 
szMenu512 ], iLen
    
    iLen 
+= formatexszMenuiLen ], charsmaxszMenu ) - iLen"\y================================^n\w [\rCrazyGames\w]^n\y  Reglas^n\d ^n\y================================^n^n" ); 

    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido insultar usuarios , administradores.^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido Tosquear en bloque.^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido Ser upeado en bloque^n");    
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido Pegar De Abajo de bloque de LJ^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido Abusar Del Microfono^n");
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r- \wProhibido tirar retry y Usar Developer O HACKS.^n^n")
    ;
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"^n\r8.\w Volver^n" );
    
iLen += formatexszMenuiLen ], charsmaxszMenu ) - iLen"\r0.\w Salir del menu " );
    
    
show_menuidKEYSMENUszMenu_"Menu_REGLAS" ); 
    
}


public 
MREGLAS(id key)
{
    switch(
key)
    {
        
        case 
8menu_principalid );
    }
    
    return 
PLUGIN_HANDLED;
}

public 
menu_extras(id)
{
    new 
Menu menu_create("\y================================^n\w [\rCrazyGames\w]^n\y  Extras^n\d ^n\y================================^n^n""mostrar_extras_handler")  //EN LOS PRIMER CORCHETES VA EL TITULO , Y EN EL SEGUNDO A QUE CASE SE VA A DIRIGIR CADA OPCION DEL MENU
    
menu_additem(Menu"\w Menu de Admin"       "1"0)

    
menu_setprop(Menu,MPROP_EXITNAME,"Salir")
    
menu_setprop(MenuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idMenu0)
    return 
PLUGIN_CONTINUE
    
}

public 
mostrar_extras_handler(idmenuitem)
{
    
    if(
item == MENU_EXIT) return PLUGIN_HANDLED 
    
    
new data[6], iName[64], accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    
    switch(
str_to_num(data))
    {
        
    
    case 
1menu_admin(id)

     }
    return 
PLUGIN_HANDLED;
}

public 
menu_admin(id)
{
    new 
Menu menu_create("\y================================^n\w [\rCrazyGames\w]^n\y  Admin^n\d ^n\y================================^n^n""mostrar_admin_handler")  //EN LOS PRIMER CORCHETES VA EL TITULO , Y EN EL SEGUNDO A QUE CASE SE VA A DIRIGIR CADA OPCION DEL MENU
    
menu_additem(Menu"\w Slap -->"       "1"0)
    
menu_additem(Menu"\w Kick -->"       "2"0)
    
menu_additem(Menu"\w Ban -->"       "3"0)
    
menu_additem(Menu"\w Cambiar De Mapa"       "4"0)

    
menu_setprop(Menu,MPROP_EXITNAME,"Salir")
    
menu_setprop(MenuMPROP_EXITMEXIT_ALL)
    
    
menu_display(idMenu0)
    return 
PLUGIN_CONTINUE
    
}

public 
mostrar_admin_handler(idmenuitem)
{
    
    if(
item == MENU_EXIT) return PLUGIN_HANDLED 
    
    
new data[6], iName[64], accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    
    switch(
str_to_num(data))
    {
        
    
    case 
1client_cmd(id"amx_slapmenu"
    
    case 
2client_cmd(id"amx_kickmenu"
    
    case 
3client_cmd(id"amx_banmenu")  
    
    case 
4client_cmd(id"amx_mapmenu"

     }
    return 
PLUGIN_HANDLED;

GaBuTo is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 03-24-2014 , 18:24   Re: Error with "ColorChat"
Reply With Quote #2

Download ColorChat https://forums.alliedmods.net/showthread.php?p=851160 then compiler again.
Kellan123 is offline
GaBuTo
Junior Member
Join Date: Nov 2010
Old 03-24-2014 , 19:01   Re: Error with "ColorChat"
Reply With Quote #3

Yes, I did. But nothing! look at this ...

GaBuTo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-24-2014 , 19:05   Re: Error with "ColorChat"
Reply With Quote #4

Did you put the file in the folder "D:\Programas\AMX MODX X 1.8\addons\amxmodx\scripting\includes"?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
GaBuTo
Junior Member
Join Date: Nov 2010
Old 03-24-2014 , 19:15   Re: Error with "ColorChat"
Reply With Quote #5

of course! but apparently the code does not match the "include". Probe the "include" that public ConnorMcLeod but nothing. Try it and see you the same error. I do not understand. It is the first time it happens.
GaBuTo is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-24-2014 , 19:22   Re: Error with "ColorChat"
Reply With Quote #6

Your plugin is looking for a file called "colorchat.inc", are you sure that file exists as the compiler is saying it doesn't
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
GaBuTo
Junior Member
Join Date: Nov 2010
Old 03-24-2014 , 23:49   Re: Error with "ColorChat"
Reply With Quote #7

Solved! Thank you all!
GaBuTo 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 06:03.


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