Raised This Month: $ Target: $400
 0% 

Compile error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
glorian
BANNED
Join Date: Mar 2009
Location: Surfplace.se
Old 04-12-2009 , 16:03   Compile error
Reply With Quote #1

Hello i got a compile error on my plugins it says "cannot read from file: "colorchat"
Here is my code

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <cstrike>
#include <colorchat>
new plugin[] = "Incredible"
new money;
new tag;
new plugin_on;
public plugin_init() {
    register_plugin(Incredible, "1.0", "Glorian")
    register_clcmd("say /godmode", "toggle_godmode", ADMIN_CHAT)
    register_clcmd("say /noclip", "toggle_noclip", ADMIN_CHAT)
    register_clcmd("say /money", "give_money", ADMIN_CHAT)
    
    plugin_on = register_cvar("amx_pluginon", "1")
    money = register_cvar("amx_givemoney", "2000")
}
public toggle_godmode(id, level, cid)
{
    if(!cmd_access(id, level, cid, 3))
      return PLUGIN_CONTINUE
    if(get_pcvar_num(plugin_on) == 1)
    {
        if(fm_get_user_godmode(id))
        {
            fm_set_user_godmode(id, 0)
            ColorChat(id, GREEN, "[%s] Your godmode is off", plugin)
        }
        else
        {
            fm_set_user_godmode(id, 1)
            ColorChat(id, GREEN, "[%s] Your godmode is on", plugin)
        }
    }
    else
    {
        ColorChat(id, GREEN, "Be Carful!")
    }
    return PLUGIN_CONTINUE;
}
public toggle_noclip(id, level, cid)
{
    if(!cmd_access(id, level, cid, 3))
      return PLUGIN_HANDLED
    if(get_pcvar_num(plugin_on) == 1)
    {
        if(fm_get_user_noclip(id))
        {
            fm_set_user_noclip(id, 0)
            ColorChat(id, GREEN, "[%s] Your noclip is off", plugin)
        }
        else
        {
            fm_set_user_noclip(id, 1)
            ColorChat(id, GREEN, "[%s] Your noclip is on", plugin)
        }
    }
    else
    {
        ColorChat(id, GREEN, "Be Careful!")
    }
    return PLUGIN_CONTINUE;
}
public give_money(id, level, cid)
{
  if(!cmd_access(id, level, cid, 3))
      return PLUGIN_CONTINUE;
    new pmoney = cs_get_user_money(id)
    cs_set_user_money(id, pmoney + get_pcvar_num(money))
    return PLUGIN_CONTINUE
}  
__________________
glorian is offline
Send a message via MSN to glorian
 



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 02:25.


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