02.03.2019, 08:10
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:
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?
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);
How to fix it? And what causes the problem?