Not displaying the full IP address.
#1

Hello guys,
It's my first time working with the GetPlayerIp function and I can't seem to display the full IP address.
Could someone help me.

This is how it's suppose to look like:


But it just displays 49.

Here's my code:
pawn Код:
new string[256];
        new plrIP[16];
        GetPlayerIp(playerid, plrIP, sizeof(plrIP));
        format(string, sizeof(string), ""COL_WHITE"Welcome!\n\n"COL_WHITE"Username: "COL_LIGHTBLUE"%s\n"COL_WHITE"IP Address: "COL_LIGHTBLUE"%d\n\nEnter your desired password below.", GetPlayerNameEx(playerid), plrIP);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Registration Process", string, "Register", "Quit");
Reply


Messages In This Thread
Not displaying the full IP address. - by Stuffs - 20.12.2013, 12:51
Re: Not displaying the full IP address. - by Vince - 20.12.2013, 12:56
Re: Not displaying the full IP address. - by Stuffs - 20.12.2013, 12:59
Re: Not displaying the full IP address. - by RedSnow - 20.12.2013, 13:25
Re: Not displaying the full IP address. - by Pottus - 20.12.2013, 13:34
Re: Not displaying the full IP address. - by Stuffs - 20.12.2013, 13:42

Forum Jump:


Users browsing this thread: 3 Guest(s)