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
{ 1 << ( 'b' - 0x61 ), "Administrator"},
{ 1 << ( 't' - 0x61 ) , "Golden Player"},
{ 1 << ( '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 i; i<sizeof(g_mAdminsDatas); i++)
{
if( iFlags & g_mAdminsDatas[i][m_iFlag] )
{
new szName[32]
get_user_name(id, szName, charsmax(szName))
#if defined __COLORCHAT
new iColor
switch( i )
{
case 0:iColor = Red
case sizeof(g_mAdminsDatas)-1:iColor = Grey
default:iColor = Blue
}
client_print_color(0, iColor, "^1**** ^4%s^1 has logged in as ^3%s****", szName, g_mAdminsDatas[i][m_szTag])
#else
client_print(0, print_chat, "**** %s has logged in as %s****", szName, g_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