local variable "len" shadows a variable at a preceding level
#2

It has nothing to do with the stock name.
pawn Код:
new len = strfind(stats, "PacketLoss: "); // Defined "len"
  new Float:packetloss = 0.0;
  if(len != -1)
  {
      strmid(stringstats, stats, len, strlen(stats));
      new len = strfind(stats, "Packetloss: "); // You define it again, confusing the script
You define the same thing twice, remove one of them.
Reply


Messages In This Thread
local variable "len" shadows a variable at a preceding level - by Glossy42O - 03.02.2015, 05:48
Re: local variable "len" shadows a variable at a preceding level - by CalvinC - 03.02.2015, 05:58
Re: local variable "len" shadows a variable at a preceding level - by Glossy42O - 03.02.2015, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)