si i.mi da 2 errori la copilare
Code: Select all
#include <amxmodx>
#include <engine>
new const PLUGIN[] = "Team_Score"
new const VERSIUNE[] = "1.0"
#define TOP_INFO 1.0
new ct, terrorist;
public plugin_init( )
{
set_task(TOP_INFO,"top_info",_,_,_,"b")
register_plugin( PLUGIN,VERSIUNE,"AMG" );
register_event( "TeamScore","ev_TeamScore","a" );
}
public ev_TeamScore( )
{
new team[32];
read_data(1,team,31);
if (equal(team,"CT"))
{
ct = read_data(2);
}
else if (equal(team,"TERRORIST"))
{
terrorist= read_data(2);
}
}
public top_info()
{
new currentMap[32]
get_mapname(currentMap,charsmax(currentMap))
set_hudmessage(127, 0, 255, -1.0, 0.0, 0, 6.0, 1);
show_hudmessage(0,"| | T %d | | %s | | CT %d | |",terrorist,currentMap,ct)
}