2 errori

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori

Post Reply
Manutza*
Membru, skill 0
Membru, skill 0
Posts: 40
Joined: 10 Nov 2018, 11:47
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

26 May 2019, 17:20

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)
	
	
}
eXtreamSHOP
User avatar
OXYD
Membru, skill +1
Membru, skill +1
Posts: 464
Joined: 27 May 2017, 21:38
Detinator Steam: Da
CS Status: Playing CS:GO
Detinator server CS: Go.HellHounds.Ro
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Fond eXtream: 0
Been thanked: 1 time
Contact:

31 May 2019, 08:01

Ai gresit sectiunea, aici e csgo, nu 1.6
User avatar
Laurentiu P.
Super moderator
Super moderator
Posts: 2231
Joined: 10 Jul 2013, 20:26
Detinator Steam: Da
CS Status: Activitate scazuta !
Detinator server CS: Da
SteamID: trust_ro
Reputatie: Moderator > Super moderator
Nume anterior: Do[N]e ;3
Fond eXtream: 1
Location: Constanta
Has thanked: 7 times
Been thanked: 19 times

31 May 2019, 08:29

Nu afecteaza cu nimic acele erori.

Mutat in categoria jocul CS 1.6
Image
User avatar
cs_all
Moderator
Moderator
Posts: 751
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 1 time
Been thanked: 2 times

11 Jun 2019, 00:23

Adauga #pragma tabsize 0 sub #include
Aneimar
Membru, skill 0
Membru, skill 0
Posts: 92
Joined: 06 Apr 2016, 23:16
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

11 Jun 2019, 21:14

| 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 .
Post Reply

Return to “Modificari pluginuri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests