(PRESSED) PROBLEM!
#5

It won't make it any more complicated. Actually you have made your code very complicated by using cases way too much:

pawn Код:
switch(Open{0})//Check whether the gate opened or closed
{
    case true://If the gate opened
    {
        MoveObject(LSPDdoor, 2245.50000000,72.59999847,1002.59997559, 5);
        Open{0} = false;
    }
    case false://If the gate closed
    {
        MoveObject(LSPDdoor, 244.00000000,72.59999847,1002.59997559, 5);
        SetTimerEx("LSPDClose", 3500, false, "i", playerid);
        Open{0} = true;
    }
}
pawn Код:
if(Open{0})//Check whether the gate opened or closed
{
    MoveObject(LSPDdoor, 2245.50000000,72.59999847,1002.59997559, 5);
    Open{0} = false;
}
else
{
    MoveObject(LSPDdoor, 244.00000000,72.59999847,1002.59997559, 5);
    SetTimerEx("LSPDClose", 3500, false, "i", playerid);
    Open{0} = true;
}
Reply


Messages In This Thread
(PRESSED) PROBLEM! - by Youice - 18.05.2012, 22:47
Re: (PRESSED) PROBLEM! - by SuperViper - 18.05.2012, 22:53
Re: (PRESSED) PROBLEM! - by Youice - 19.05.2012, 10:03
Re: (PRESSED) PROBLEM! - by HDFord - 19.05.2012, 10:18
Re: (PRESSED) PROBLEM! - by Finn - 19.05.2012, 10:20
Re: (PRESSED) PROBLEM! - by Youice - 19.05.2012, 11:01
Re: (PRESSED) PROBLEM! - by Youice - 19.05.2012, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)