AMX Mod X API Documentation

Signature
native geoip_code2(const ip[], ccode[3]);
Description

Lookup the two character country code for a given IP address. Sets the buffer to "error" on

an unsuccessful lookup.

Deprecated

This native will overflow the buffer by one cell on an unknown ip lookup!

Use geoip_code2_ex instead.

Parameters
  • ip The IP address to lookup.
  • result The result buffer.
Returns

The result length.

Назад
Верх