getip doesn't work properly
#4

only IP without any other info
pawn Код:
CMD:getip(playerid, params[])
{
new playerip[16];
GetPlayerIp(playerid, playerip, sizeof(playerip));
SendClientMessage(playerid, COLOR_LIGHTBLUE ,playerip);
return 1;
}
or if you want more info you need format
pawn Код:
CMD:getip(playerid, params[])
{
new playerip[30];
GetPlayerIp(playerid, playerip, sizeof(playerip));
format(playerip, sizeof playerip, "Your IP: %s", playerip);
SendClientMessage(playerid, COLOR_LIGHTBLUE ,playerip);
return 1;
}
Reply


Messages In This Thread
getip doesn't work properly - by saffierr - 28.03.2015, 02:23
Re: getip doesn't work properly - by Jefff - 28.03.2015, 02:31
Re: getip doesn't work properly - by saffierr - 28.03.2015, 02:39
Re: getip doesn't work properly - by Jefff - 28.03.2015, 02:41
Re: getip doesn't work properly - by saffierr - 28.03.2015, 02:41
Respuesta: Re: getip doesn't work properly - by Juand - 28.03.2015, 02:46
Re: getip doesn't work properly - by CalvinC - 28.03.2015, 09:58

Forum Jump:


Users browsing this thread: 3 Guest(s)