SA-MP Forums Archive
warnings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: warnings (/showthread.php?tid=471570)



warnings - Another1 - 23.10.2013

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




Re: warnings - PawnoPro - 23.10.2013

Warnings don't matter, just regard them.


Re: warnings - Blademaster680 - 23.10.2013

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


Re: warnings - -=Dar[K]Lord=- - 23.10.2013

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;