Raised This Month: $ Target: $400
 0% 

Connect City


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
serjaka
Senior Member
Join Date: Oct 2011
Old 11-10-2013 , 11:11   Connect City
Reply With Quote #1

hello Allied Modders ! I have 1 problem, help me pelase to solve it . I use Geo Ip Extended by Arkshine and i done a plugin but i got error on copile.

ERROR: error 088: number of arguments does not match definition

Guys Help please with this code

Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>
#include <colorchat>

new bool:gIsUserConnected[33];

public plugin_init() {
	register_plugin( "City Connect Announcer", "1.0", "Serjaka" );
	
}

public client_putinserver( id ) {
	gIsUserConnected[id] = true;
	
	if( is_user_bot( id ) ) {
		gIsUserConnected[id] = false;	// lets make less loops in distance counting xD
		
		return PLUGIN_CONTINUE;
	}
	
	new szIP[16], szCountry[32], szCity[32], szName[32];
	get_user_name(id, szName, 31);
	get_user_ip( id, szIP, 31, 1 );

	if( equal( szIP, "loopback" ) )
	 	format( szIP, sizeof( szIP ) - 1, "85.196.220.208" ) // o hai i am hardcoder.
	
	geoip_country( szIP, szCountry );
	geoip_city( szIP, szCity );
	
	if( equal(szCountry, "error") ) {
		if( !contain(szIP, "192.168.") || !contain(szIP, "10. ") || !contain(szIP, "172.") || equal(szIP, "127.0.0.1") )
			szCountry = "LAN";
		
		else if( equal(szIP, "loopback") )
			szCountry = "LAN Owner";
		
		else
			szCountry = "Unknown Country";
	}
	
	if( get_user_flags(id)) {
		if( !equal( szCity, "error" ) )

			ColorChat( 0, RED, "^x01Player^x04 %s^x01 connected from^x01 [^x03%s^x01],^x03 [%s]^x01", szName, szCity, szCountry );
		else
			ColorChat( 0, RED, "^x01Player^x04 %s^x01 connected from^x01 [^x03%s^x01]", szName, szCountry );
	}
	
	
	return PLUGIN_CONTINUE;
}

Last edited by serjaka; 11-10-2013 at 11:11.
serjaka is offline
 



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


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