#1

I maded so when i type /stats. To show your player IP.
But it doesnt work.

Everything other is working like, Money, VIP, ADMIN, Kills. But for the IP it doesnt work

In /stats the IP is shown like:

IP: 49

1. My ip doesnt start like that.
2. Is not full.

Why?

Here is the code::

Код:
CMD:stats(playerid, params[])
{
	  new admin = PlayerInfo[playerid][pAdmin];
	  new vip = PlayerInfo[playerid][pVIP];
	  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\n{FFFFFF}VIP: {00FF28}%i", playername, pIP, GetPlayerMoney(playerid), admin, kills, vip);
	  ShowPlayerDialog(playerid, 160, DIALOG_STYLE_MSGBOX, "{F50000}Player Statistics", string, "Close","");
	  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)