AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ColorChat Help (https://forums.alliedmods.net/showthread.php?t=154818)

extreem 04-13-2011 15:23

ColorChat Help
 
HI, I can't compile my plugin.
Error: fatal error 100: cannot read from file: "colorchat"
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <colorchat>

#define PLUGIN "sayomg"
#define VERSION "1.0"
#define AUTHOR "Extreem"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /rs""reset_score")
    
register_clcmd("say /resetscore""reset_score")
}
public 
reset_score(id)
{
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    
cs_set_user_deaths(id0)
    
set_user_frags(id0)
    new 
name[33]
        
get_user_name(idname32)
        
ColorChat(0BLUE"%s reset score"name)


Help please

bibu 04-13-2011 15:27

Re: ColorChat Help
 
PHP Code:

    new name[33]
        
get_user_name(idname32)
        
ColorChat(0BLUE"%s reset score"name

->

PHP Code:

new name[32]
        
get_user_name(idname31)
        
client_print(0print_chat"%s reset score"name


extreem 04-13-2011 15:32

Re: ColorChat Help
 
bibu, thanx, but I want COLOR Chat

JocAnis 04-13-2011 15:32

Re: ColorChat Help
 
u need to put 'colorchat.inc' in your addons/amxmodx/scripting/includes folder.

extreem 04-13-2011 15:39

Re: ColorChat Help
 
1 Attachment(s)
Don't help :(

bibu 04-13-2011 15:44

Re: ColorChat Help
 
Anyways change the array of get_user_name + you don't have the include. Search for the TuT by drekes.

extreem 04-13-2011 15:59

Re: ColorChat Help
 
Yeah thanx. It's work :)


All times are GMT -4. The time now is 20:07.

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