GetPlayerIp Bug?
#1

So i tried to make when a player connect to say:

You registered: Lixyde, Password: <pass>, IP: <playerip>

But there is something wrong and i dont understand why is wrong.

It says that my is 50 ?? That's impossible, where is the problem?

Here is pic:
https://imgur.com/a/jaxra

Here is the code that i have:

Код:
new Name[MAX_PLAYER_NAME];
new string[256];
new PlayerIP[16];
GetPlayerIp(playerid, PlayerIP, sizeof(PlayerIP));
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "SERVER: {FFFFFF}You registered: {FFE600}%s, {FFFFFF}Password: {FFE600}%s, {FFFFFF}IP: {FFE600}%d{FFFFFF}!", Name, inputtext, PlayerIP);
SendClientMessage(playerid, COLOR_SYSTEM, string);
Where is the problem? How to fix it?
Reply


Messages In This Thread
GetPlayerIp Bug? - by Lixyde - 30.03.2018, 17:58
Re: GetPlayerIp Bug? - by kovac - 30.03.2018, 18:02
Re: GetPlayerIp Bug? - by Lixyde - 30.03.2018, 18:06
Re: GetPlayerIp Bug? - by ivndosos - 30.03.2018, 18:49
Re: GetPlayerIp Bug? - by !R1Ch@rD! - 30.03.2018, 19:26

Forum Jump:


Users browsing this thread: 1 Guest(s)