Error message: : error 030: compound statement not closed at the end of file (started at line 503)
#1

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.
Reply
#2

What is in your line 503?
Reply
#3

pawn Code:
if(IsPlayerConnected(playerid))
Reply
#4

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?
Reply
#5

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;
}
Reply
#6

Heh, I knew that. Thanks for the help guys. Worked.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)