Deixei assim:
new string[45];
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));
HTTP(playerid, HTTP_GET, string, "", "HTTP_Connect");
return 1;
}
E deu apenas esses erros:
undefined symbol "GetPlayerIPEx"; did you mean "GetPlayerIp"?
Linhas q deu o problema>
Eu alterei pra GetPlayerIp mas n foi tb:
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));
new string[45];
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));
HTTP(playerid, HTTP_GET, string, "", "HTTP_Connect");
return 1;
}
E deu apenas esses erros:
undefined symbol "GetPlayerIPEx"; did you mean "GetPlayerIp"?
Linhas q deu o problema>
Eu alterei pra GetPlayerIp mas n foi tb:
if(strcmp("127.0.0.1", GetPlayerIPEx(playerid), true) != 0) {
format(string, 128, "ip-api.com/json/%s", GetPlayerIPEx(playerid));