Geoip: Fix missing continent id and fix indentation.

This commit is contained in:
Arkshine
2014-08-05 22:57:48 +02:00
parent adde73123f
commit 023c1e3baf
3 changed files with 13 additions and 10 deletions

View File

@ -197,8 +197,8 @@ native Float:geoip_distance(Float:lat1, Float:lon1, Float:lat2, Float:lon2, syst
* Look up the continent code for a given IP address.
*
* @note The code can be retrieved as integer (See CONTINENT_* constants.) 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).
* @note Possible continent codes are AF, AN, AS, EU, NA, OC, SA for
* Africa(1), Antarctica(2), Asia(3), Europe(4), North America(5), Oceania(6), South America(7).
*
* @param ip The IP address to look up.
* @param result The result of the geoip look up.
@ -209,11 +209,12 @@ enum Continent
{
CONTINENT_UNKNOW = 0,
CONTINENT_AFRICA,
CONTINENT_ANTARCTICA,
CONTINENT_ASIA,
CONTINENT_EUROPE,
CONTINENT_NORTH_AMERICA,
CONTINENT_OCEANIA,
CONTINENT_SOUTH_AMERICA
CONTINENT_SOUTH_AMERICA,
};
native Continent:geoip_continent_code(const ip[], result[3]);