Raised This Month: $ Target: $400
 0% 

Cant Compile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 08-17-2013 , 19:12   Cant Compile
Reply With Quote #1

Hello every one
I want to Compile this code
PHP Code:
#define __COLORCHAT

#include <amxmodx>

#if defined __COLORCHAT
#include <colorchat>
#endif

enum mDatas
{
    
m_iFlag,
    
m_szTag[32]
}

new const 
g_mAdminsDatas[][mDatas] = 
{
    
// let from highest power to lowest
    
<< ( 'b' 0x61 ), "Administrator"},
    { 
<< ( 't' 0x61 ) , "Golden Player"},
    { 
<< ( 's' 0x61 ) , "Silver Player"}
}

public 
plugin_init() 

    
register_plugin("LOGIN Join notifer","0.1","yamin"


public 
client_authorized(id)
{
    new 
iFlags get_user_flags(id)
    for(new 
ii<sizeof(g_mAdminsDatas); i++)
    {
        if( 
iFlags g_mAdminsDatas[i][m_iFlag] )
        {
            new 
szName[32
            
get_user_name(idszNamecharsmax(szName))
#if defined __COLORCHAT
            
new iColor
            
switch( )
            {
                case 
0:iColor Red
                
case sizeof(g_mAdminsDatas)-1:iColor Grey
                
default:iColor Blue
            
}
            
client_print_color(0iColor"^1**** ^4%s^1 has logged in as ^3%s****"szNameg_mAdminsDatas[i][m_szTag])
#else
            
client_print(0print_chat"**** %s has logged in as %s****"szNameg_mAdminsDatas[i][m_szTag])
#endif
            
break
        }
    }

But i have got errors while compile
----------
Please help me if there are an mistakes in code to get the correct code
Thanks
5aloOod is offline
 


Thread Tools
Display Modes

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 16:00.


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