22.03.2011, 22:51
Ok, i made this script bades on the progress bar include i found... heres the script:
and these are the warnings/errors:
WHAT SHOULD I DO
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);
SetProgressBarValue(bar[playerid], 0.0);
ShowProgressBarForPlayer(playerid, bar[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
DestroyProgressBar(bar[playerid]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
killz[killerid] ++;
SetProgressBarValue(bar[playerid], killz[killerid]);
UpdateProgressBar(bar[killerid]);
return 1;
}
pawn Код:
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(16) : warning 213: tag mismatch
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(17) : warning 213: tag mismatch
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(18) : warning 213: tag mismatch
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(24) : warning 213: tag mismatch
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(31) : warning 213: tag mismatch
\\Tomscomputer\servers\world war 7\filterscripts\bar1.pwn(32) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.