25.05.2020, 21:16
Quote:
All files is on the correct place and I've tried getting info like this way too... but nothing, no errors, but no data too.
|
pawn Code:
#include <a_samp>
#include <sscanf2>
#include <geolite>
#include <zcmd>
enum e_PlayerInfo
{
GeoCountry[MAX_COUNTRY_LENGTH],
GeoCity[MAX_CITY_LENGTH]
};
new PlayerInfo[MAX_PLAYERS][e_PlayerInfo];
CMD:mycountry(playerid, params[])
{
if (isnull(PlayerInfo[playerid][GeoCountry]) && isnull(PlayerInfo[playerid][GeoCity]))
{
GetPlayerCountry(playerid, PlayerInfo[playerid][GeoCountry], MAX_COUNTRY_LENGTH);
GetPlayerCity(playerid, PlayerInfo[playerid][GeoCity], MAX_CITY_LENGTH);
}
printf("Country: %s, City: %s", PlayerInfo[playerid][GeoCountry], PlayerInfo[playerid][GeoCity]);
return 1;
}