12.06.2017, 01:26
: warning 219: local variable "Pos" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
line is :
pleas help ?
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
PHP Code:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
new str[4];
new Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
format(str, 4, "%.1f", amount);
new Text3D:hitbar = Create3DTextLabel(str, 0xFF0000FF, Pos[0], Pos[1], Pos[2] + 0.6, 30.0, 0);
SetTimerEx("UpdateHitBar", 66, 0, "iffffii", playerid, amount, Pos[0], Pos[1], Pos[2] + 0.8, 16, 0xFF0000FF);
SetPVarInt(playerid, "hidbar_HitBar", _:hitbar + 1);
return 1;
}
PHP Code:
new Float:Pos[3];