22.03.2011, 23:24
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:
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;
}

