IP wrong
#1

So the problem is that i maded so when you spawn its gonna show your name, admin, kills, and etc..
and show your ip.

But there is the problem, the ip.

Look at the code:

Код:
new admin = PlayerInfo[playerid][pAdmin];
	new kills = PlayerInfo[playerid][pKills];
	
	new playername[MAX_PLAYER_NAME];
	new pIP[16];
	new string[1200];
	GetPlayerName(playerid, playername, sizeof(playername));
	GetPlayerIp(playerid, pIP, sizeof(pIP));
	format(string, sizeof(string), "{FFFFFF}Your Name: {00FF28}%s\n{FFFFFF}IP: {00FF28}%s\n{FFFFFF}Money: {00FF28}%i\n{FFFFFF}Admin: {00FF28}%i\n{FFFFFF}Kills: {00FF28}%i", playername, pIP, GetPlayerMoney(playerid), admin, kills);
    SendClientMessage(playerid, WDOG_COLOR, string);
And in game it doesnt show the real ip, it just shows 127.0.0.1.

How to fix it? And what causes the problem?
Reply


Messages In This Thread
IP wrong - by Lixyde - 02.03.2019, 08:10
Re: IP wrong - by Longover - 02.03.2019, 08:11
Re: IP wrong - by thefirestate - 02.03.2019, 11:07
Re: IP wrong - by TheToretto - 02.03.2019, 11:42

Forum Jump:


Users browsing this thread: 1 Guest(s)