if statement problem
#3

pawn Код:
CMD:cap(playerid)
{
    capture[playerid] = true;
    SetTimerEx("cap1", 1000, false, "i", playerid);
    return true;
}

forward public cap1();
public cap1()
{
    if (StartWar == 0)
    {
        PointCount= 30;
        SendClientMessageToAll(-1, "Point Is Ready To cap");
    }
   
    foreach(new i: Player)
    {
        if(PointCount ==1 && capture[i]==1)
        {
            SendClientMessageToAll(-1, "PlayerA Has Captured The point");
        }
        else
        {
            SendClientMessageToAll(-1, "No ONe Could Capture Point");
        }
    }
}
Reply


Messages In This Thread
if statement problem - by omidi - 01.12.2013, 19:25
Re: if statement problem - by Voxel - 01.12.2013, 19:46
Re: if statement problem - by iZN - 01.12.2013, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)