SendRadioMessage, problem.
#8

Alright, new code:

pawn Код:
public SendRadioMessage(playerid, color, string[])
{
foreach(Player, i)
{
    if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 && PlayerInfo[i][pOnDuty] == 1) // Police force
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 && PlayerInfo[i][pOnDuty] == 1) // FBI
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3 && PlayerInfo[i][pOnDuty] == 1) // SASP
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pLeader] == 4 && JobDuty[i] == 1) // firemen / medic
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 5 || PlayerInfo[i][pLeader] == 5 && PlayerInfo[i][pOnDuty] == 1) // national
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 6 || PlayerInfo[i][pLeader] == 6)
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pLeader] == 7)
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 8 || PlayerInfo[i][pLeader] == 8)
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 9 || PlayerInfo[i][pLeader] == 9)
    {
    SendClientMessage(i, color, string);
    }
    else if(PlayerInfo[i][pMember] == 10 || PlayerInfo[i][pLeader] == 10)
    {
    SendClientMessage(i, color, string);
    }
 }
}
But it's still exactly the same problem. :/

@Above,
that was the previous code, but I couldn't get the 'if is on duty' blabla working. But I might use your code though, I'll check it.
Reply


Messages In This Thread
SendRadioMessage, problem. - by Biesmen - 10.12.2010, 18:31
Re: SendRadioMessage, problem. - by Jochemd - 10.12.2010, 18:37
Re: SendRadioMessage, problem. - by Biesmen - 10.12.2010, 19:33
Re: SendRadioMessage, problem. - by Scenario - 10.12.2010, 19:34
Re: SendRadioMessage, problem. - by Hiitch - 10.12.2010, 19:35
Re: SendRadioMessage, problem. - by Vince - 10.12.2010, 19:37
Re: SendRadioMessage, problem. - by Mokerr - 10.12.2010, 19:53
Re: SendRadioMessage, problem. - by Biesmen - 10.12.2010, 20:01
Re: SendRadioMessage, problem. - by Scenario - 10.12.2010, 20:08
Re: SendRadioMessage, problem. - by Mokerr - 10.12.2010, 20:09

Forum Jump:


Users browsing this thread: 3 Guest(s)