Raised This Month: $ Target: $400
 0% 

[REQ] compiling error [plz help]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-14-2014 , 09:44   [REQ] compiling error [plz help]
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx> 
#include <amxmisc> 
#include <geoip> 

new g_iMsgSayText
new 
connect
new 
disconnect
     
public 
plugin_init() { 
    
register_plugin("Connect message with city and country""1.0""Moody92"); 
     
    
// ColorChat 
    
g_iMsgSayText get_user_msgid("SayText"); 
     
    
// Enable and disable cvars 
    
connect register_cvar("amx_connect_message""1"); 
    
disconnect register_cvar("amx_disconnect_message""1"); 


public 
client_putinserver(id){ 
    if(
get_pcvar_num(connect) == 0
        return 
PLUGIN_HANDLED 
         
    
static name[32]; 
    static 
ip[16]; 
    static 
country[45]; 
    static 
city[45]; 
     
    
get_user_name(idnamecharsmax(name)); 
    
get_user_ip(idipcharsmax(ip), 1); 
    
geoip_city(ipcitycharsmax(city));
    
geoip_country(ipcountrycharsmax(country)); 
     
     
    
ChatColor(0"!y[Player Info]!g%s !yconnected from [!team%s!y] [!g%s!y]"namecitycountry);     
    return 
PLUGIN_HANDLED 


public 
client_disconnect(id){ 
    if(
get_pcvar_num(disconnect) == 0
        return 
PLUGIN_HANDLED 
     
    
static name[32]; 
    static 
ip[16]; 
    static 
country[45]; 
    static 
city[45]; 
     
    
get_user_name(idnamecharsmax(name)); 
    
get_user_ip(idipcharsmax(ip), 1); 
    
geoip_city(ipcitycharsmax(city)); 
    
geoip_country(ipcountrycharsmax(country)); 
    
    
ChatColor(0"!y[Player Info]!g%s !ydisconnected from [!team%s!y] [!g%s!y]"namecitycountry); 
    return 
PLUGIN_HANDLED 

     
// ColorChat 
stock ChatColor(const id, const input[], any:...) 

    new 
count 1players[32
    static 
msg[191
    
vformat(msg190input3
     
    
replace_all(msg190"!g""^4"// Green Color 
    
replace_all(msg190"!y""^1"// Default Color 
    
replace_all(msg190"!team""^3"// Team Color 

     
    
if (idplayers[0] = id; else get_players(playerscount"ch"
    { 
        for (new 
0counti++) 
        { 
            if (
is_user_connected(players[i])) 
            { 
            
message_begin(MSG_ONE_UNRELIABLEg_iMsgSayText_players[i])   
            
write_byte(players[i]); 
            
write_string(msg); 
            
message_end(); 
            } 
        } 
    } 

popeye10 is offline
PreDominance
Member
Join Date: Jul 2014
Old 08-14-2014 , 10:28   Re: [REQ] compiling error [plz help]
Reply With Quote #2



The web compiler is for AXMODX 1.8.1, which mayyyy or may not include the geoip_city native (I didn't test on my computer). The only compile errors I received (since you didn't say what errors your were getting...) were due to geoip being undefined.
PreDominance is offline
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 08-14-2014 , 10:38   Re: [REQ] compiling error [plz help]
Reply With Quote #3

Please post the full output of the compiler and what version of AMXX you are compiling against. Otherwise we can't help you.
__________________
In Flames we trust!
Nextra is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 08-14-2014 , 11:22   Re: [REQ] compiling error [plz help]
Reply With Quote #4

Hope it works
Attached Files
File Type: sma Get Plugin or Get Source (code.sma - 62 views - 2.2 KB)
__________________
skz is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-14-2014 , 12:06   Re: [REQ] compiling error [plz help]
Reply With Quote #5

I m using amxmodx 1.8.2
This is the error .."geoip_city"
see this attached Image.
Attached Images
File Type: jpg connect1.jpg (46.6 KB, 97 views)

Last edited by popeye10; 08-14-2014 at 12:09.
popeye10 is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 08-14-2014 , 12:15   Re: [REQ] compiling error [plz help]
Reply With Quote #6

Install this include on your computer: https://forums.alliedmods.net/showthread.php?t=95665

Then compile locally

And install the new version of amxmod x https://forums.alliedmods.net/showthread.php?t=95665
__________________

Last edited by skz; 08-14-2014 at 12:17.
skz is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-14-2014 , 14:04   Re: [REQ] compiling error [plz help]
Reply With Quote #7

Quote:
Originally Posted by skz View Post
Install this include on your computer: https://forums.alliedmods.net/showthread.php?t=95665

Then compile locally

And install the new version of amxmod x https://forums.alliedmods.net/showthread.php?t=95665
.
.
ThanQ

it's work geoip.inc

Last edited by popeye10; 08-14-2014 at 14:04.
popeye10 is offline
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 08-16-2014 , 15:43   Re: [REQ] compiling error [plz help]
Reply With Quote #8

plugin compile .....................but not show connect msg .......
popeye10 is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 08-16-2014 , 16:44   Re: [REQ] compiling error [plz help]
Reply With Quote #9

I can't help you because I never worked with geoip, sorry :s
__________________
skz 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 13:13.


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