what this error! ?
#4

Quote:
Originally Posted by xXxFerZExXx
Посмотреть сообщение
Dont Worry about that ,And dont waste your time about that , It will compile Sucessfully , its not a error bro its just a warning...
So wrong xD

You're using the GetPlayerHealth function wrong.

Try this:
pawn Код:
CMD:pinfo(playerid,params[])
{
  new id;
  if(!IsPlayerAdmin(playerid)) return SCM(playerid, RED, "UnKnown Command! Type /help");
  if(sscanf(params,"u", id)) return SCM(playerid, RED, "Get some info about a player: /pinfo <playerid>");
  if(!IsPlayerConnected(playerid)) return SCM(playerid, RED, "Player is not connected");
  new b_name[MAX_PLAYER_NAME], p_ip[25], str1[100], Float:hp;
  GetPlayerHealth(playerid,hp);
  GetPlayerName(playerid, b_name,sizeof (b_name));
  GetPlayerIp(playerid, p_ip,sizeof (p_ip));
  format(str1,sizeof (str1),"Player name: {27FF0A}%s\nPlayer ip: {27FF0A}%s\nPlayer Money: $%i\nPlayer ping: %s\n Player health: %i",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid), hp);
  ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{27FF0A}Info",str1,"Ok","");
  return 1;
}
Reply


Messages In This Thread
what this error! ? - by Another1 - 23.10.2013, 07:37
Re: what this error! ? - by xXxFerZExXx - 23.10.2013, 07:43
Re: what this error! ? - by ModernStreets - 23.10.2013, 08:15
Re: what this error! ? - by EiresJason - 23.10.2013, 08:54
Re: what this error! ? - by x96664 - 23.10.2013, 09:08
Re: what this error! ? - by Another1 - 23.10.2013, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)