What's wrong with this?
#1

pawn Code:
CMD:gate(playerid, params[])
{
    if(GateClosed)
    {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 89.19999695, 2501.50000000, 17.89999962))
        {
            GateClosed = false;
            MoveObject(Gate, 89.40000153,2496.30004883,17.89999962, 3.0, 0.00000000,0.00000000,88.00000000);
            return 1;
        }
    }
    else{
    {
        if(IsPlayerInRangeOfPoint(playerid, 15.0, 89.19999695, 2501.50000000, 17.89999962))
        {
            GateClosed = true;
            MoveObject(Gate,89.19999695,2501.50000000,17.89999962, 3.0, 00000000,0.00000000,88.00000000);
            return 1;
        }
    }
}
   
    if(GateClosed1){
    if(IsPlayerInRangeOfPoint(playerid, 15.0, 185.00000000, 2493.10009766, 18.10000038))
    {
        GateClosed1 = false;
        MoveObject(Gate1, 184.80000305, 2499.60009766, 18.10000038, 3.0, 0.0, 0.0, 270.00000000);
        return 1;
    }
       

        else{
            if(IsPlayerInRangeOfPoint(playerid, 15.0, 185.00000000, 2493.10009766, 18.10000038)){
            GateClosed1 = true;
            MoveObject(Gate1, 185.00000000, 2493.10009766, 18.10000038, 3.0, 0.0, 0.0, 269.99996948);
            return 1;
            }
    }
    return 1;
}
EDIT: I messed with the code a bit, and now I only got this Error.
Code:
C:\Users\Luke\Desktop\Scripting\gamemodes\urban.pwn(822) : error 030: compound statement not closed at the end of file (started at line 769)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Line 769 is
pawn Code:
if(GateClosed)
Reply


Messages In This Thread
What's wrong with this? - by rangerxxll - 02.03.2012, 23:46
Re: What's wrong with this? - by Jefff - 02.03.2012, 23:52
Re: What's wrong with this? - by Walsh - 02.03.2012, 23:58
Re: What's wrong with this? - by ricardo178 - 03.03.2012, 00:29
Re: What's wrong with this? - by Walsh - 03.03.2012, 00:36
Re: What's wrong with this? - by ricardo178 - 03.03.2012, 00:43
Re: What's wrong with this? - by rangerxxll - 03.03.2012, 01:31

Forum Jump:


Users browsing this thread: 1 Guest(s)