Need Help
#1

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;
}
Reply
#2

Код:
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?
Reply
#3

wait
Reply
#4

it work thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)