help with small code
#1

Just because I'm awful at finding small errors, can anyone tell me what's wrong with the following code..
pawn Код:
new pTeam = GetPlayerTeam(playerid);
    foreach(Player, i)
    {
        if(GetPlayerTeam(i) != pTeam)
        {
            SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & 0xFFFFFF00));
            SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
        }
        else
        {
            SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid));
            SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(i));
        }
    }
I don't get any errors or anything but the purpose of the code is failing. It's supposed to show players in the radar only if they're in the same team.

Thanks in advance.
Reply


Messages In This Thread
help with small code - by Onfroi - 09.11.2014, 00:20
Re: help with small code - by MD5 - 09.11.2014, 00:23
Re: help with small code - by Eth - 09.11.2014, 00:24
Re: help with small code - by Abagail - 09.11.2014, 00:25
Re: help with small code - by Onfroi - 09.11.2014, 01:21
Re: help with small code - by Eth - 09.11.2014, 02:33

Forum Jump:


Users browsing this thread: 1 Guest(s)