plugins/include/geoip.inc
changeset 1293 2a71249ca0ab
parent 619 6934bf39171e
child 1330 ab94316bb52b
     1.1 --- a/plugins/include/geoip.inc	Thu Aug 09 19:14:15 2007 +0000
     1.2 +++ b/plugins/include/geoip.inc	Thu Aug 09 19:48:46 2007 +0000
     1.3 @@ -29,18 +29,18 @@
     1.4   *
     1.5   * @param ip			Ip to determine the country code.
     1.6   * @param ccode			Destination string buffer to store the code.
     1.7 - * @noreturn
     1.8 + * @return				True on success, false if no country found.
     1.9   */
    1.10 -native GeoipCode2(const String:ip[], String:ccode[3]);
    1.11 +native bool:GeoipCode2(const String:ip[], String:ccode[3]);
    1.12  
    1.13  /**
    1.14   * Gets the three character country code from an IP address. (USA, CAN, etc)
    1.15   *
    1.16   * @param ip			Ip to determine the country code.
    1.17   * @param ccode			Destination string buffer to store the code.
    1.18 - * @noreturn
    1.19 + * @return				True on success, false if no country found.
    1.20   */
    1.21 -native GeoipCode3(const String:ip[], String:ccode[4]);
    1.22 +native bool:GeoipCode3(const String:ip[], String:ccode[4]);
    1.23  
    1.24  /**
    1.25   * Gets the full country name. (max length of output string is 45)
    1.26 @@ -48,9 +48,9 @@
    1.27   * @param ip			Ip to determine the country code.
    1.28   * @param ccode			Destination string buffer to store the country name.
    1.29   * @param len			Maximum length of output string buffer.
    1.30 - * @noreturn
    1.31 + * @return				True on success, false if no country found.
    1.32   */
    1.33 -native GeoipCountry(const String:ip[], String:name[], len=45);
    1.34 +native bool:GeoipCountry(const String:ip[], String:name[], maxlength);
    1.35  
    1.36  /**
    1.37   * @endsection