20.12.2013, 12:51
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:
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");