Raised This Month: $ Target: $400
 0% 

Compile Pls


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wickedd
Veteran Member
Join Date: Nov 2009
Old 10-27-2013 , 13:33   Re: Compile Pls
Reply With Quote #1

Quote:
Originally Posted by FaNr View Post
I have errors !
Should we guess what errors are?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
BLacking98
Veteran Member
Join Date: Oct 2012
Location: California
Old 10-28-2013 , 04:00   Re: Compile Pls
Reply With Quote #2

"#include < CC_ColorChat >" ?
Never heard of such include, can you give me the link to it ?

EDIT: Maybe that's because you can't compile (probably) you don't have the include or the include's name is incorrectly written
__________________

Last edited by BLacking98; 10-28-2013 at 04:01.
BLacking98 is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 02-20-2017 , 08:59   Re: Compile Pls
Reply With Quote #3

Quote:
Originally Posted by BLacking98 View Post
"#include < CC_ColorChat >" ?
Never heard of such include, can you give me the link to it ?

EDIT: Maybe that's because you can't compile (probably) you don't have the include or the include's name is incorrectly written
this is this inc and it compiled
PHP Code:
/*                          __________________________________
*                    |Functiile originade create de Numb|
*                    ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

*                 Fisier rescris si fixat de Askhanar.
*

*                Copyright İ 2012, Askhanar @disconnect.ro
*            Acest fisier este prevazut asa cum este ( fara garantii )
*/

#if defined _CC_ColorChat_included
  #endinput
#endif
#define _CC_ColorChat_included

enum Color
{
    
NORMAL 1,         // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
    
GREEN,             // Culoare Verde.
    
TEAM_COLOR,         // Culoare Rosu, Albastru, Gri.
    
GREY,             // Culoarea Gri.
    
RED,             // Culoarea Rosu.
    
BLUE,             // Culoarea Albastru.
}

new 
TeamName[  ][  ] = 
{
    
"",
    
"TERRORIST",
    
"CT",
    
"SPECTATOR"
}

ColorChat(  idColor:iType, const msg[  ], { FloatSqlResult_}:...  )
{
    
    
// Daca nu se afla nici un jucator pe server oprim TOT. Altfel dam de erori..
    
if( !get_playersnum( ) ) return;
    
    new 
szMessage256 ];

    switch( 
iType )
    {
         
// Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
        
case NORMAL:    szMessage] = 0x01;
        
        
// Culoare Verde.
        
case GREEN:    szMessage] = 0x04;
        
        
// Alb, Rosu, Albastru.
        
default:     szMessage] = 0x03;
    }

    
vformat(  szMessage], 251msg4  );

    
// Ne asiguram ca mesajul nu este mai lung de 192 de caractere.Altfel pica server-ul.
    
szMessage192 ] = '^0';
    

    new 
iTeamiColorChangeiPlayerIndexMSG_Type;
    
    if( 
id )
    {
        
MSG_Type  =  MSG_ONE_UNRELIABLE;
        
iPlayerIndex  =  id;
    }
    else
    {
        
iPlayerIndex  =  CC_FindPlayer(  );
        
MSG_Type MSG_ALL;
    }
    
    
iTeam  =  get_user_teamiPlayerIndex );
    
iColorChange  =  CC_ColorSelection(  iPlayerIndex,  MSG_TypeiType);

    
CC_ShowColorMessage(  iPlayerIndexMSG_TypeszMessage  );
        
    if(  
iColorChange  )    CC_Team_Info(  iPlayerIndexMSG_Type,  TeamNameiTeam ]  );

}

CC_ShowColorMessage(  id, const iType, const szMessage[  ]  )
{
    
    static 
bool:bSayTextUsed;
    static 
iMsgSayText;
    
    if(  !
bSayTextUsed  )
    {
        
iMsgSayText  =  get_user_msgid"SayText" );
        
bSayTextUsed  =  true;
    }
    
    
message_beginiTypeiMsgSayText_id  );
    
write_byte(  id  )        
    
write_string(  szMessage  );
    
message_end(  );
}

CC_Team_Infoid, const iType, const szTeam[  ] )
{
    static 
bool:bTeamInfoUsed;
    static 
iMsgTeamInfo;
    if(  !
bTeamInfoUsed  )
    {
        
iMsgTeamInfo  =  get_user_msgid"TeamInfo" );
        
bTeamInfoUsed  =  true;
    }
    
    
message_beginiTypeiMsgTeamInfo_id  );
    
write_byte(  id  );
    
write_string(  szTeam  );
    
message_end(  );

    return 
1;
}

CC_ColorSelection(  id, const iTypeColor:iColorType)
{
    switch(  
iColorType  )
    {
        
        case 
RED:    return CC_Team_Info(  idiTypeTeamName]  );
        case 
BLUE:    return CC_Team_Info(  idiTypeTeamName]  );
        case 
GREY:    return CC_Team_Info(  idiTypeTeamName]  );

    }

    return 
0;
}

CC_FindPlayer(  )
{
    new 
iMaxPlayers  =  get_maxplayers(  );
    
    for( new 
1<= iMaxPlayersi++ )
        if(  
is_user_connected)  )
            return 
i;
    
    return -
1;

__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode