D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\COD\pawno\include\progress2.inc(152) : warning 205: redundant code: constant expression is zero D:\FahLevY\PROJECT SERVER GUE !!!\Project Specially\Server Jadi!\COD\pawno\include\progress2.inc(240) : warning 205: redundant code: constant expression is zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
stock PlayerBar:CreatePlayerProgressBar(playerid, Float:x, Float:y, Float:width = 55.5, Float:height = 3.2, colour = 0xFF1C1CFF, Float:max = 100.0, direction = BAR_DIRECTION_RIGHT) { if(!IsPlayerConnected(playerid)) ///// line 152 return INVALID_PLAYER_BAR_ID; new barid = _bar_NewID(playerid); if(barid == -1) { print("[CreatePlayerProgressBar] ERROR: MAX_PLAYER_BARS limit reached."); return INVALID_PLAYER_BAR_ID; }
_RenderBar(playerid, barid, update = false) { if(!IsPlayerConnected(playerid)) ////line 240 return false; if(!IsValidPlayerProgressBar(playerid, PlayerBar:barid)) return false; PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_back]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_fill]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_main]);
stock PlayerBar:CreatePlayerProgressBar(playerid, Float ![]() { new barid = _bar_NewID(playerid); if(barid == -1) { print("[CreatePlayerProgressBar] ERROR: MAX_PLAYER_BARS limit reached."); return INVALID_PLAYER_BAR_ID; } |
_RenderBar(playerid, barid, update = false) { if(!IsValidPlayerProgressBar(playerid, PlayerBar:barid)) return false; PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_back]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_fill]); PlayerTextDrawDestroy(playerid, pbar_TextDraw[playerid][barid][pbar_main]); |