Raised This Month: $ Target: $400
 0% 

Cant Compile


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-17-2013 , 19:15   Re: Cant Compile
Reply With Quote #2

Compiles fine for me. What errors are you getting?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 08-17-2013 , 19:26   Re: Cant Compile
Reply With Quote #3

in web compile
and in local compiler
Attached Thumbnails
Click image for larger version

Name:	compile.jpg
Views:	109
Size:	99.1 KB
ID:	124405   Click image for larger version

Name:	compile2.jpg
Views:	94
Size:	94.8 KB
ID:	124406  
5aloOod is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-17-2013 , 19:30   Re: Cant Compile
Reply With Quote #4

Web Compiler will never work when using custom include files.
Local Compiler appears to have the incorrect include file
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 08-17-2013 , 19:40   Re: Cant Compile
Reply With Quote #5

Ok, i will not use web compiler
But i have the colorchat.inc in scripting/include so why i get those errors in local compiler ?
5aloOod is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-17-2013 , 20:09   Re: Cant Compile
Reply With Quote #6

Because there are multiple colorchat methods for some reason which I will never understand.

I can't find the right one, I only have a download link for my automatic .inc updater.
http://forums.alliedmods.net/attachm...9&d=1340447929

If you want a quick compile you can do that here but I would recommend setting up a local compiler using Pawn Studio or Notepad++ AM Edition for the long run.
__________________

Last edited by Black Rose; 08-17-2013 at 20:14.
Black Rose is offline
5aloOod
Senior Member
Join Date: Jun 2013
Location: hell
Old 08-17-2013 , 20:23   Re: Cant Compile
Reply With Quote #7

Thanks black rose
code compiled with the colorchat.inc you give
5aloOod is offline
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 16:00.


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