Raised This Month: $ Target: $400
 0% 

Connect City


Post New Thread Reply   
 
Thread Tools Display Modes
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
serjaka
Senior Member
Join Date: Oct 2011
Old 11-10-2013 , 11:14   Re: Connect City
Reply With Quote #2

Code:
if( equal( szIP, "loopback" ) )
	 	format( szIP, sizeof( szIP ) - 1, "85.196.220.208" ) // o hai i am hardcoder.
what do this command?


can someone help me with this? please
http://forums.alliedmods.net/showthr...33#post2059233
some error i dont know how to add

Last edited by serjaka; 11-10-2013 at 11:16.
serjaka is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-10-2013 , 12:07   Re: Connect City
Reply With Quote #3

PHP Code:
  geoip_countryszIPszCountry );
  
geoip_cityszIPszCity ); 


PHP Code:
  geoip_countryszIPszCountrycharsmaxszCountry ) );
  
geoip_cityszIPszCitycharsmaxszCity ) ); 
Edit: Don't cross post.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 11-10-2013 at 12:08.
wickedd is offline
serjaka
Senior Member
Join Date: Oct 2011
Old 11-10-2013 , 12:18   Re: Connect City
Reply With Quote #4

thxx Bro Works fine :* , but for what is this code:
Code:
if( equal( szIP, "loopback" ) )
	 	format( szIP, sizeof( szIP ) - 1, "85.196.220.208" ) // o hai i am hardcoder.
serjaka is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-10-2013 , 12:42   Re: Connect City
Reply With Quote #5

You wrote the plugin and you don't know what that is?
PHP Code:
register_plugin"City Connect Announcer""1.0""Serjaka" ); 
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
serjaka
Senior Member
Join Date: Oct 2011
Old 11-10-2013 , 12:52   Re: Connect City
Reply With Quote #6

i found this command from other plugin
serjaka is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-10-2013 , 13:11   Re: Connect City
Reply With Quote #7

Quote:
Originally Posted by serjaka View Post
i found this command from other plugin
You mean, you found a plugin by xpaw and you changed his name to yours.
We don't like people who take credit for someone else's work.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.

Last edited by wickedd; 11-10-2013 at 13:38.
wickedd 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 23:16.


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