28.02.2010, 07:30
Bump..
Fixed, but when 2 players haves wanted it doesen't appear:
Name1 - Level 1
Name2 - Level 2, why?
What's wrong?
Fixed, but when 2 players haves wanted it doesen't appear:
Name1 - Level 1
Name2 - Level 2, why?
pawn Код:
public WTI(i)
{
if(gTeam[i] == 2 || IsACop(i))
{
new string[256];
new sendername[MAX_PLAYER_NAME];
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
GetPlayerName(playerid,sendername,sizeof(sendername));
if(WantedLevel[playerid] >= 1)
{
format(string, sizeof(string),"%s - Level %d", sendername, WantedLevel[playerid]);
TextDrawShowForPlayer(i, WLevel[i]);
TextDrawSetString(WLevel[i], string);
TextDrawShowForPlayer(i, Wlist);
return 1;
}
}
}
return 1;
}