2 errori

Modificari necesare ale pluginurilor

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
Manutza*
Membru, skill 0
Membru, skill 0
Posts: 80
Joined: 10 Nov 2018, 11:47
Detinator Steam: Da
CS Status: id/amgshowtime
Fond eXtream: 0
Discord: RS6#1237
Been thanked: 4 times
Contact:

26 May 2019, 18: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)
	
	
}
Image
RoyalServer
User avatar
OXYD
Membru, skill +1
Membru, skill +1
Posts: 463
Joined: 27 May 2017, 22: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, 09:01

Ai gresit sectiunea, aici e csgo, nu 1.6
User avatar
Laurentiu P.
Fost moderator
Fost moderator
Posts: 2550
Joined: 10 Jul 2013, 21:26
Detinator Steam: Da
Reputatie: Fost super moderator
Fond eXtream: 100
Has thanked: 26 times
Been thanked: 64 times
Contact:

31 May 2019, 09:29

Nu afecteaza cu nimic acele erori.

Mutat in categoria jocul CS 1.6
no...
User avatar
WHOAMI?
eXtream Mod
eXtream Mod
Posts: 999
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: eXtream Mod
Fost Membru Club eXtreamCS (o luna)
Location: US
Has thanked: 30 times
Been thanked: 20 times

11 Jun 2019, 01:23

Adauga #pragma tabsize 0 sub #include
Aneimar
Membru, skill 0
Membru, skill 0
Posts: 90
Joined: 07 Apr 2016, 00:16
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Has thanked: 1 time
Contact:

11 Jun 2019, 22: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 10 guests