16.08.2014, 06:36
Quote:
Well yeah ding-dong, your code "stops" after that debug message because you "return" there.
Also what's with this var assignment here, shouldn't it just equal the players team? Код:
new cop = Info[i][Team] == BP; |
Fixed new cop to just
pawn Код:
if(GetDistanceBetweenPlayers(i,Info[i][Team] == BP) >= 80)
pawn Код:
public WantedLevelReduce()
{
new string[100];
for(new i = 0; i < MAX_PLAYERS; i++)
{
new plwl = GetPlayerWantedLevel(i);
if(plwl >= 1)
{
if(GetDistanceBetweenPlayers(i,Info[i][Team] == BP) >= 80)
{
plwl--;
SetPlayerWantedLevel(i, plwl);
format(string, sizeof(string), "Wanted Level Decreased To: %d",plwl);
SendClientMessage(i, GetPlayerColor(i), string);
}
}
}
return 1;
}