[Help] So many errors!!! Fuel Bar
#8

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Isn't the second argument supposed to be an integer value not a floating/fixed point value? If i remember correctly its an integer. (not sure havn't used that include in a while)

EDIT: Also you must declare the bar variable with the bar indentifier eg,
pawn Код:
new bar:gGas[MAX_PLAYERS];
That does nothing but give me an "gGas is already defined" error.

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
I've never used that include although can you give me a code that links to gas?

and where the variable is created.
Код:
new Bar:gas[MAX_PLAYERS] = {INVALID_BAR_ID, ...};

public ProgressBar()
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        new vehicleid;
        if((vehicleid = GetPlayerVehicleID(playerid)) && gGas[playerid] != INVALID_BAR_ID)
        {
            CheckGas(vehicleid, gGas);
            SetProgressBarValue(playerid, gas);
            UpdateProgressBar(gas[playerid], playerid);
        }
    }
}

if(newstate == PLAYER_STATE_DRIVER)
	{
	    gas[playerid] = CreateProgressBar(50.0, 300.0, _, _, 0xFF0000FF, 100.0);
        ShowProgressBarForPlayer(playerid, gas[playerid]);
This is pretty much all the code i have for it.
Reply


Messages In This Thread
[Help] So many errors!!! Fuel Bar - by drewcasey24 - 24.01.2011, 03:25
Re: [Help] So many errors!!! Fuel Bar - by Lorenc_ - 24.01.2011, 03:33
Re: [Help] So many errors!!! Fuel Bar - by Lorenc_ - 24.01.2011, 06:21
Re: [Help] So many errors!!! Fuel Bar - by drewcasey24 - 24.01.2011, 07:13
Re: [Help] So many errors!!! Fuel Bar - by Lorenc_ - 24.01.2011, 07:56
Re: [Help] So many errors!!! Fuel Bar - by HyperZ - 24.01.2011, 08:06
Re: [Help] So many errors!!! Fuel Bar - by iggy1 - 24.01.2011, 08:06
Re: [Help] So many errors!!! Fuel Bar - by drewcasey24 - 24.01.2011, 12:17
Re: [Help] So many errors!!! Fuel Bar - by DeSantis - 24.01.2011, 19:55
Re: [Help] So many errors!!! Fuel Bar - by iggy1 - 25.01.2011, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)