SA-MP Forums Archive
Need Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need Help (/showthread.php?tid=576819)



Need Help - Armageddonz - 07.06.2015

how can i declare this because i get 2 error from the line

Код:
PlayerInfo[playerid][pCountry] = country;
I use plugin that trace country from ip so i don't need to declare country...

whole code
Код:
public OnRetrieveIpLocation(playerid, country[])
{
	new pname[MAX_PLAYER_NAME], ip[16];
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    GetPlayerIp(playerid, ip, sizeof(ip));
    new ping = GetPlayerPing(playerid);
	format( Welcome, sizeof(Welcome), "[SERVER] {FF6600}%s{FFFFFF}(%i) Has Join The Server From {FFAC75}%s | {FFAC75}%s | {FFAC75}%i |", pname, playerid, country, ip, ping);
	PlayerInfo[playerid][pCountry] = country;
	return 1;
}



Re: Need Help - FplayerGR - 07.06.2015

Код:
public OnRetrieveIpLocation(playerid, country[])
{
	new pname[MAX_PLAYER_NAME], ip[16];
	GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        GetPlayerIp(playerid, ip, sizeof(ip));
        new ping = GetPlayerPing(playerid);
        format(PlayerInfo[playerid][pCountry],256,"%s",country);
	format( Welcome, sizeof(Welcome), "[SERVER] {FF6600}%s{FFFFFF}(%i) Has Join The Server From {FFAC75}%s | {FFAC75}%s | {FFAC75}%i |", pname, playerid, country, ip, ping);
	return 1;
}
this?


Re: Need Help - Armageddonz - 07.06.2015

wait


Re: Need Help - Armageddonz - 07.06.2015

it work thanks