Porgress bar not working
#3

Yea what he said..and plus they're simple warnings..nothing to worry about really if it works then it works =p.
Most of the warnings are gone except the warning in which the bar is created:
pawn Код:
#include <progress>
#include <a_samp>
new bar[MAX_PLAYERS];
new killz[MAX_PLAYERS];

main()
{
    print("\n----------------------------------");
    print(" exp bar");
    print("----------------------------------\n");
}


public OnPlayerConnect(playerid)
{
    bar[playerid] = CreateProgressBar(549.00, 30.00, 57.50, 5.19, 267387050, 10000.0);//Don't know why it gives warning
    SetProgressBarValue(Bar:bar[playerid], 0.0);
    ShowProgressBarForPlayer(playerid, Bar:bar[playerid]);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyProgressBar(Bar:bar[playerid]);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    killz[killerid] ++;
    SetProgressBarValue(Bar:bar[playerid], killz[killerid]);
    UpdateProgressBar(Bar:bar[killerid], killerid);//added killerid since i looked over the include and i guess it shows the bar to everyone if its not there?
    return 1;
}
Reply


Messages In This Thread
Porgress bar not working - by sciman001 - 22.03.2011, 22:51
Re: Porgress bar not working - by Stigg - 22.03.2011, 23:10
Re: Porgress bar not working - by s0nic - 22.03.2011, 23:24
Re: Porgress bar not working - by sciman001 - 23.03.2011, 02:35

Forum Jump:


Users browsing this thread: 1 Guest(s)