Originally this Plugin is in Serbian (PlayedRounds) but when I edit it in english and tried to compile it with webcompiler, it sends me this error:
/tmp/textQcGB7L.sma(3) : fatal error 100: cannot read from file: "colorchat"
Original Source:
PHP Code:
new maxrundi
new rounds = 0
public plugin_init()
{
register_plugin("playedrounds", "1.0", "Borara")
register_clcmd("say playedrounds", "runda")
register_event("HLTV", "pocetak_runde", "a", "1=0", "2=0")
register_event("TextMsg", "restart_runde", "a", "2=#Game_will_restart_in")
}
public restart_runde()
rounds = 0
public runda(id)
{
rounds++
maxrundi=get_cvar_num("mp_maxrounds")
ColorChat(0, GREEN , "Played-Rounds: ^3%d^1/^3%d ^1", rounds,maxrundi)
}
Edited Source:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
new maxrounds
new rounds = 0
public plugin_init()
{
register_plugin("Played Rounds", "1.0", "Borara")
register_clcmd("say playedrounds", "Rounds")
register_clcmd("say_team playedrounds", "Rounds")
register_clcmd("say rounds", "Rounds")
register_clcmd("say_team rounds", "Rounds")
register_event("HLTV", "Start_Round", "a", "1=0", "2=0")
register_event("TextMsg", "Restart_Round", "a", "2=#Game_will_restart_in")
}
public restart_round()
rounds = 0
public rounds(id)
{
rounds++
maxrounds=get_cvar_num("mp_maxrounds")
ColorChat(0, GREEN, "Played-Rounds: ^3%d^1/^3%d ^1", Rounds,Max-Rounds)
}
Can any one help me?? to sort out what is the problem??