15.02.2012, 22:06
So, I want to show how many players are being wanted in an textdraw. But, for some IDs it works, and for some not.
pawn Код:
new szInfo[74 + 1], iPlayersWanted = 0;
foreach (new i: Player)
{
if (GetPlayerWantedLevel(i) > 0) ++ iPlayersWanted;
if (iClass[i] == ClassPolice)
{
format(szInfo, 75, "~b~%d ~w~ieskomu zaideju. Norint suiimti/duoti bauda, spauskite ~r~MMB", iPlayersWanted);
TextDrawSetString(TD_JobInfo[i], szInfo);
}
}