Raised This Month: $12 Target: $400
 3% 

Module: GeoIP SE v2.1


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-01-2009 , 13:19   Re: Module: GeoIP SE v2.0
Reply With Quote #11

Here a modified version. Like you asked me, geoip_latitude() and geoip_longitude() return directly a float now.

Here the source + dll + .inc modified.

@xPawn, please check before to be sure even if it works for me.

The .so should arrive tomorrow.
Attached Files
File Type: zip geoipcity_source.zip (675.7 KB, 302 views)
File Type: dll geoipse_amxx.dll (104.5 KB, 379 views)
File Type: inc geoipse.inc (1.2 KB, 384 views)
__________________

Last edited by Arkshine; 06-01-2009 at 13:58.
Arkshine is offline
Eugene.
Junior Member
Join Date: May 2009
Location: 55.7522 / 37.6156
Old 06-02-2009 , 05:17   Re: Module: GeoIP SE v2.0
Reply With Quote #12

arkshine, thank you
__________________
English i know badly!
Eugene. is offline
Send a message via ICQ to Eugene.
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-02-2009 , 05:26   Re: Module: GeoIP SE v2.0
Reply With Quote #13

Quote:
Originally Posted by arkshine View Post
@xPawn, please check before to be sure even if it works for me.
Yes it works but include should look like this
PHP Code:
/* 
    by Eugene N. [Russia, Lipetsk]
    ICQ 833783
 */

#if defined geoipse_included
  #endinput
#endif
#define _geoipse_included

#if AMXX_VERSION_NUM >= 175
 #pragma reqlib geoipse
 #if !defined AMXMODX_NOAUTOLOAD
  #pragma loadlib geoipse
 #endif
#else
 #pragma library geoipse
#endif

// IP addresses passed to these natives can contain ports, the ports will be ignored.

/**
 * Lookup the full city name for the given IP address. Sets the buffer to "error" on unsuccessful lookup.
 *
 * @param ip        The IP address to lookup.
 * @param result    The result of the geoip lookup.
 * @param len        The maximum length of the result buffer.
 */
native geoip_city(const ip[], result[], len=45);


/**
 * Lookup the city's latitude for the given IP address. Returns 0 if latitude is not found.
 *
 * @param ip    The IP address to lookup.
 * @return        The result of the geoip lookup. (float)
 */
native Float:geoip_latitude(const ip[]);


/**
 * Lookup the city's longitude for the given IP address. Returns 0 if longitude is not found.
 *
 * @param ip    The IP address to lookup.
 * @return        The result of the geoip lookup. (float)
 */
native Float:geoip_longitude(const ip[]); 
__________________
xPaw is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 06-03-2009 , 02:39   Re: Module: GeoIP SE v2.0
Reply With Quote #14

Good job, xPaw, I'll use it.
Thanks.
TheRadiance is offline
Send a message via ICQ to TheRadiance
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kyiv
Old 06-03-2009 , 07:07   Re: Module: GeoIP SE v2.1
Reply With Quote #15

linux?
для линукса намечается?
hasta is offline
Send a message via ICQ to hasta
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-03-2009 , 07:27   Re: Module: GeoIP SE v2.1
Reply With Quote #16

hasta why not read f*cking main post or topic ?
__________________
xPaw is offline
Eugene.
Junior Member
Join Date: May 2009
Location: 55.7522 / 37.6156
Old 06-03-2009 , 14:33   Re: Module: GeoIP SE v2.1
Reply With Quote #17

Quote:
Originally Posted by hasta View Post
linux?
для линукса намечается?
Linux version coming soon....
__________________
English i know badly!
Eugene. is offline
Send a message via ICQ to Eugene.
NiLuJe
Veteran Member
Join Date: Mar 2004
Location: Paris, France
Old 06-03-2009 , 14:52   Re: Module: GeoIP SE v2.1
Reply With Quote #18

And here it is...

(Note: Completely untested, since I couldn't reach Arkshine this afternoon... :p)

Sorry for the delay ;)
Attached Files
File Type: so geoipcity_amxx_i386.so (30.7 KB, 372 views)
NiLuJe is offline
Send a message via MSN to NiLuJe
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-03-2009 , 14:58   Re: Module: GeoIP SE v2.1
Reply With Quote #19

Thanks. ^^
__________________
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-03-2009 , 15:27   Re: Module: GeoIP SE v2.1
Reply With Quote #20

Thanks NiLuJe ;) added in main post
__________________
xPaw 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 17:21.


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