Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
David5290 - 13.04.2012
pawn Code:
forward IsPlayerOnAnyBoat(playerid);
public IsPlayerOnAnyBoat(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new FXF_vehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
if(FXF_vehicle == 430 || FXF_vehicle == 446 || FXF_vehicle == 452 || FXF_vehicle == 453 || FXF_vehicle == 454 || FXF_vehicle == 472 || FXF_vehicle == 473 || FXF_vehicle == 484 || FXF_vehicle == 493 || FXF_vehicle == 595) {
{
[B](Line 503) [/B] if(IsPlayerConnected(playerid))
{
if(IsPlayerInWater(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "Fish.");
}
return 0;
}
How to close it? Won't let me continue without closing, I don't see anywhere to close it, halfway asleep and can't really think.
Re: Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
RollTi - 13.04.2012
What is in your line 503?
Re: Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
David5290 - 13.04.2012
pawn Code:
if(IsPlayerConnected(playerid))
Re: Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
[HiC]TheKiller - 13.04.2012
pawn Code:
if(FXF_vehicle == 430 || FXF_vehicle == 446 || FXF_vehicle == 452 || FXF_vehicle == 453 || FXF_vehicle == 454 || FXF_vehicle == 472 || FXF_vehicle == 473 || FXF_vehicle == 484 || FXF_vehicle == 493 || FXF_vehicle == 595) {
{
2 opening brackets?
Re: Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
RollTi - 13.04.2012
it is a missing brackets/two opening brackets
FIX CODE:
pawn Code:
forward IsPlayerOnAnyBoat(playerid);
public IsPlayerOnAnyBoat(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new FXF_vehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
if(FXF_vehicle == 430 || FXF_vehicle == 446 || FXF_vehicle == 452 || FXF_vehicle == 453 || FXF_vehicle == 454 || FXF_vehicle == 472 || FXF_vehicle == 473 || FXF_vehicle == 484 || FXF_vehicle == 493 || FXF_vehicle == 595)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInWater(playerid))
{
SendClientMessage(playerid, COLOR_GREEN, "Fish.");
}
}
}
}
return 0;
}
Re: Error message: : error 030: compound statement not closed at the end of file (started at line 503) -
David5290 - 13.04.2012
Heh, I knew that. Thanks for the help guys. Worked.