Page 1 of 1

2 errori

Posted: 26 May 2019, 18:20
by Manutza*
salut am facut un plugin de team score hud [stiu e si pe net]
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)
	
	
}

Re: 2 errori

Posted: 31 May 2019, 09:01
by OXYD
Ai gresit sectiunea, aici e csgo, nu 1.6

Re: 2 errori

Posted: 31 May 2019, 09:29
by Laurentiu P.
Nu afecteaza cu nimic acele erori.

Mutat in categoria jocul CS 1.6

Re: 2 errori

Posted: 11 Jun 2019, 01:23
by WHOAMI?
Adauga #pragma tabsize 0 sub #include

Re: 2 errori

Posted: 11 Jun 2019, 22:14
by Aneimar
| Afiseaza codul
#include <amxmodx>  
#include <engine>  

#pragma tabsize 0

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(0, 255, 0, -1.0, 0.0, 0, 6.0, 2.0, 0.1, 0.2, 4);
	show_hudmessage(0,"| | TERO:  %d | |     %s      | |  COUNTER:  %d | |",terrorist,currentMap,ct)
	
	
}
E mai stabil asa , + nu mai exista errori la compilare
Cu placere .