Tag mis match on progressbar.inc
#1

I got a tag miss match with fuelbar = CreatePlayerProgressBar(playerid, Float:548.5, Float:36.9, Float:55.5, Float:3.2, LIGHTGREEN, 100);

Heres the stock from the progress.inc

PHP код:
stock PlayerBar:CreatePlayerProgressBar(playeridFloat:xFloat:yFloat:width=55.5Float:height=3.2colorFloat:max=100.0)
{
    new
        
barid;
    for(
barid 0barid MAX_PLAYER_BARS; ++barid// Changed from `Bars` to `MAX_PLAYER_BARS` rather than getting the size of the second cell
        
if(!PlayerBars[playerid][barid][pbar_valid]) break;
    if(
PlayerBars[playerid][barid][pbar_valid] || barid == MAX_PLAYER_BARS)
        return 
INVALID_PLAYER_BAR_ID;
    new 
PlayerText:in_t PlayerBarText[barid][pbar_textdraw1] = CreatePlayerTextDraw(playeridxy"_");
    
PlayerTextDrawUseBox        (playeridin_t1);
    
PlayerTextDrawTextSize        (playeridin_twidth0.0);
    
PlayerTextDrawLetterSize    (playeridin_t1.0height 10);
    
PlayerTextDrawBoxColor        (playeridin_t0x00000000 | (color 0x000000FF));
    
in_t PlayerBarText[barid][pbar_textdraw2] = CreatePlayerTextDraw(playerid1.22.15"_");
    
PlayerTextDrawUseBox        (playeridin_t1);
    
PlayerTextDrawTextSize        (playeridin_twidth 2.00.0);
    
PlayerTextDrawLetterSize    (playeridin_t1.0height 10 0.35);
    
PlayerTextDrawBoxColor        (playeridin_t, (color 0xFFFFFF00) | (0x66 & ((color 0x000000FF) / 2)));
    
in_t PlayerBarText[barid][pbar_textdraw3] = CreatePlayerTextDraw(playerid1.22.15"_");
    
PlayerTextDrawTextSize        (playeridin_tpb_percent(xwidthmax1.0), 0.0);
    
PlayerTextDrawLetterSize    (playeridin_t1.0height 10 0.35);
    
PlayerTextDrawBoxColor        (playeridin_tcolor);
    
PlayerBars[playerid][barid][pbar_x] = x;
    
PlayerBars[playerid][barid][pbar_y] = y;
    
PlayerBars[playerid][barid][pbar_w] = width;
    
PlayerBars[playerid][barid][pbar_h] = height;
    
PlayerBars[playerid][barid][pbar_m] = max;
    
PlayerBars[playerid][barid][pbar_colour] = color;
    
PlayerBars[playerid][barid][pbar_valid] = true;
    return 
PlayerBar:barid;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)