Započeo uinatsvima_
•3. Jul 2018.• Zaključano!!! Pomoć oko GEOIPa !!!
669
pregleda
6
postova
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
6 / 250 XP
Početnik(0)
3,071
Postovi:
70
Teme:
Pridružio se:Nov. 2016
3. Jul 2018.
Problem(error/warning): Ništa
Dio skripte:
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
Dio skripte:
forward GetPlayerCountry(index, response_code, data[]);
public GetPlayerCountry(index, response_code, data[])
{
new buffer;
if(response_code == 200)
{
new str, city, country, ippp, pName;
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, pName;
GetPlayerName(index, pName, sizeof(pName));
#if defined ALWAYS_RESPONSE
new IP;
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
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
6 / 250 XP
Početnik(0)
3,071
Postovi:
70
Teme:
Pridružio se:Nov. 2016
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
137 / 250 XP
Početnik(0)
387
Postovi:
39
Teme:
Pridružio se:Feb. 2016
5. Jul 2018.
imas na mom fbu Skorpija Bratt u folderu sistemi za objaviti imas geo ip i tacan je skroz 😄
Hustler
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
40 / 100 XP
Početnik(0)
89
Postovi:
4
Teme:
Pridružio se:Jun 2018
5. Jul 2018.
http://forum.sa-mp.com/showthread.php?t=605326
API key?
http://forum.sa-mp.com/showthread.php?t=296171
http://forum.sa-mp.com/showthread.php?t=436115
API key?
http://forum.sa-mp.com/showthread.php?t=296171
http://forum.sa-mp.com/showthread.php?t=436115
OG Legend
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosAktivan Član
6 / 250 XP
Početnik(0)
3,071
Postovi:
70
Teme:
Pridružio se:Nov. 2016
5. Jul 2018.
buLLeT_ wrote on July 5, 2018, 6:09 pm:
http://forum.sa-mp.com/showthread.php?t=605326
API key?
http://forum.sa-mp.com/showthread.php?t=296171
http://forum.sa-mp.com/showthread.php?t=436115
API key?
http://forum.sa-mp.com/showthread.php?t=296171
http://forum.sa-mp.com/showthread.php?t=436115
Imam APIKEY
@Skorpija Vidjet ću hvala 😄
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava
