!!! Pomoć oko GEOIPa !!!


Započeo uinatsvima_, Jul 03, 2018, 22:59:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ništa
Dio skripte:
forward GetPlayerCountry(index, response_code, data[]);
public GetPlayerCountry(index, response_code, data[])
{
    new buffer[358];
    if(response_code == 200)
    {
        new str[256], city[3], country[50], ippp[30], pName[MAX_PLAYER_NAME];
        GetPlayerName(index, pName, sizeof(pName));
        GetPlayerIp(index, ippp, 24);
        format(buffer, sizeof(buffer), "%s", data);
        strmid(str, buffer, 4, strlen(buffer)); // Cutting the 'OK' response...
        strmid(city, str, strfind(str, ";", true) + 1, strfind(str, ";", true) + 3); // Getting City
        strmid(country, str, strfind(str, ";", true) + 4, strlen(buffer)); // Getting Country
        format(str, 256, "[ CONNECT ] - Ime igrača %s Zemlja - "CRVENA"%s", pName , country);
        SendAdminMessage(0xFFFF80C8, str);
    }
    else
    {
        new str[300], pName[MAX_PLAYER_NAME];
        GetPlayerName(index, pName, sizeof(pName));
        #if defined ALWAYS_RESPONSE
        new IP[30];
        GetPlayerIp(index, IP, sizeof(IP));
        format(str, sizeof(str),"api.ipinfodb.com/v3/ip-country/?key="APIKEY"&ip=%s", IP);
        HTTP(index, HTTP_GET, str, "", "GetPlayerCountry");
        #else // Normal message, without country
        format(str, 120, "%s {FAFAFA}je usao na server.", pName);
        AdminGameMaster(GetPlayerColor(index), str);
        #endif
    }
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Znači, da objasnim, problem je u tome Å¡to kad uÄ'em na server (hostovan na hostingu), prikazuje mi Connect da sam se konektovao ali netačne informacije Å¡alje:

Pošalje mi Ime igrača da je tačno, ID: random neki id bubne 66, 76, 71, Zemlja - i kad se treba pojavit zemlja tu ništa ne piše
Dole ip adressa radi ali Zemlja i ID NE
Poslednja Izmena: Jul 05, 2018, 21:19:13 POSLE PODNE od Bašovski


Mrsko mi da nagadjam , posalji mi pwn fajl i pawno da pregledam sve.

Ne brini neam pametnija posla nego da cuvam tudje modove i skripte , dosta mi mog posla  8)

imas na mom fbu Skorpija Bratt u folderu sistemi za objaviti imas geo ip i tacan je skroz :D
Vandals Project OGC
[size=11.25pt]Vandals Project OGC[/size][/font]
[/color]