• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] warning 219: local variable "i" shadows a variable at a preceding level
#6
Quote:he other warnings that i have is : warning 213: tag mismatch: expected tags "Float", or none ("_"); but found "PlayerText" BECAUSE:
Note the definition of function SetTimerEx:
Code:
native SetTimerEx(funcname[], interval, repeating, const format[], /*>>*/{Float,_}:/*<<*/...);
Just like the warning says, it expects either a variable with tag none (_) or Float. Either change the definition of the function or force pass it with no tag (that is what you should do)
Code:
SetTimerEx("spawn", 3000, 0, "ii", playerid, _:drawid);
  Reply


Messages In This Thread
RE: warning 219: local variable "i" shadows a variable at a preceding level - by Kwarde - 2021-02-10, 07:29 PM

Forum Jump: