02.03.2012, 23:46
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;
}
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.
pawn Code:
if(GateClosed)