Help please!
#7

Quote:
Originally Posted by rappy93
Посмотреть сообщение
Код:
[14:07:33] Error: Function not registered: 'GetCountryName'
This is most likely due to the geoIP filterscript.. try using another one from the web.
Do you know where to find.. i just find some small scripts like this:
#include <a_http> /// <- Add this include, it's needed to HTTP() function.

public OnPlayerConnect(playerid) // Your OnPlayerConnect Callback.
{
new req[256];
new IP[16];
GetPlayerIp(playerid,IP,sizeof(IP));
// format(IP,sizeof(IP),"117.56.0.98"); //Un-comment this line if you want to put some random Dummy IP to test the script

if(strlen(IP)<1) return 1;
format(req, sizeof(req),"geoip.freevar.com/?IP=%s",IP); //// Peplace the address (geoip.freevar.com) by whatever your server's IP Address/Domain Name
HTTP(playerid, HTTP_GET, req,"","GEOIP_HTTPREQUEST");
return 1;
}

forward GEOIP_HTTPREQUEST(playerid, response_code, location[]);
public GEOIP_HTTPREQUEST(playerid, response_code, location[]) // The GEO-IP Callback.
{
new string[128];
if(response_code == 200) {
new Pname[64];
GetPlayerName(playerid,Pname,sizeof(Pname));
format(string, sizeof(string), ">> %s joined the server from %s",Pname,location);
SendClientMessage(playerid, 0x00CCFFFF, string);
return 1;
}
else {
format(string, sizeof(string), "%d : Request Failed", response_code);
SendClientMessage(playerid, 0xCC9900FF, string);
return 0;
}
}
Is that it or something else?
Like i said.. i'm new in this things!
Reply


Messages In This Thread
Help please! - by HrvojeII - 03.11.2013, 11:22
Re: Help please! - by rappy93 - 03.11.2013, 11:50
Re: Help please! - by MBilal - 03.11.2013, 11:53
Re: Help please! - by HrvojeII - 03.11.2013, 11:56
Re: Help please! - by rappy93 - 03.11.2013, 11:59
Re: Help please! - by HrvojeII - 03.11.2013, 12:00
Re: Help please! - by HrvojeII - 03.11.2013, 12:08

Forum Jump:


Users browsing this thread: 2 Guest(s)