Compound statement not closed.... help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Compound statement not closed.... help (
/showthread.php?tid=331866)
Compound statement not closed.... help -
Anup_Rao - 06.04.2012
Compound statement not closed at the end of file(started at 115) ended at 121
Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 8, 2497.39, 2777.62, 11.27))
{
MoveObject(ag, 2497.50, 2785.44, 11.27,3);
MoveObject(ag1, 2497.73, 2760.43, 11.27,3);
SetTimer("close",4000,0);
return 1;
}
Please fix this error if fixed rep up
Re: Compound statement not closed.... help -
MadeMan - 06.04.2012
You have a '}' missing.
Re: Compound statement not closed.... help -
Anup_Rao - 06.04.2012
Quote:
Originally Posted by MadeMan
You have a '}' missing.
|
where is it missing please copy code and put the bracket where it is necessary
I will really rep up if u help me in this please
Re: Compound statement not closed.... help -
Haydz - 06.04.2012
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 8, 2497.39, 2777.62, 11.27))
{
MoveObject(ag, 2497.50, 2785.44, 11.27,3);
MoveObject(ag1, 2497.73, 2760.43, 11.27,3);
SetTimer("close",4000,0);
} //You were missing the bracket here.
return 1;
}
As stated above you were just missing a bracket.
Re: Compound statement not closed.... help -
Anup_Rao - 06.04.2012
Thanks rep up for both of u