Since I suck in english, I have some difficulty with the .inc.
Here the new version for geoip_continent_code().
Is someone can correct it since I'm not sure if it's well written or needs changes. I just want something perfect in english.
Code:
/**
* Lookup the continent code for a given IP address.
*
* @note The code can be retrieved as integer number or string (2 characters).
* @note Possible continent codes are AF, AS, EU, NA, OC, SA for
* Africa(1), Asia(2), Europe(3), North America(4), Oceania(5) and South America(6).
*
* @param ip The IP address to lookup.
* @param result The result of the geoip lookup. This param is optional.
* If the lookup does not succeed, the buffer is not modified.
* @return The result of the geoip lookup, 0 on a failed lookup.
*/
enum Continent
{
AFRICA = 1,
ASIA,
EUROPE,
NORTH_AMERICA,
OCEANIA,
SOUTH_AMERICA
}
native Continent:geoip_continent_code( const ip[], result[3] = "" );
__________________