warnings
#1

hello what this warnings!?

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[1000], Folat:Health, Folat:Armour;
  GetPlayerHealth(playerid, Health);
  GetPlayerArmour(playerid, Armour);
  GetPlayerName(playerid, b_name,sizeof (b_name));
  GetPlayerIp(playerid, p_ip,sizeof (p_ip));
  format(str1,sizeof (str1),"{C7C7C7}Player name: {27FF0A}%s\n{C7C7C7}Player IP: {27FF0A}%s\n{C7C7C7}Player Money: {27FF0A}$%i\n{C7C7C7}Player ping: {27FF0A}%i/n{C7C7C7}Player Health: {27FF0A}%f/n{C7C7C7}Player Armour: {27FF0A}%f",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid), Health, Armour);
  ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{C7C7C7}Player Info",str1,"Close","");
  return 1;
}
PHP код:
C:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(271) : warning 213tag mismatch
C
:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(272) : warning 213tag mismatch
C
:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(275) : warning 213tag mismatch
C
:\Users\John\Desktop\Server\filterscripts\TuNiAdmin.pwn(275) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
4 Warnings

Reply
#2

Warnings don't matter, just regard them.
Reply
#3

What lines are the warnings coming from? Some people just leave the warnings. I personally fix the warnings cause they bother me.
Reply
#4

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(id)) return SCM(playerid, RED, "Player is not connected");
  new b_name[MAX_PLAYER_NAME], p_ip[25], str1[1000], Float:Health, Float:Armour;
  GetPlayerHealth(playerid,Health);
  GetPlayerArmour(playerid, Armour);
  GetPlayerName(playerid, b_name,sizeof (b_name));
  GetPlayerIp(playerid, p_ip,sizeof (p_ip));
  format(str1,sizeof (str1),"{C7C7C7}Player name: {27FF0A}%s\n{C7C7C7}Player IP: {27FF0A}%s\n{C7C7C7}Player Money: {27FF0A}$%i\n{C7C7C7}Player ping: {27FF0A}%i/n{C7C7C7}Player Health: {27FF0A}%f/n{C7C7C7}Player Armour: {27FF0A}%f",b_name, p_ip, GetPlayerMoney(playerid), GetPlayerPing(playerid), Health, Armour);
  ShowPlayerDialog(playerid, 12, DIALOG_STYLE_MSGBOX, "{C7C7C7}Player Info",str1,"Close","");
  return 1;
}
You didnt declare the floating variable correctly , it should be
pawn Код:
new Float:VarName;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)