Missing Bracket Problem
#1

Hello there, i've found my old script and i tryed to re-compile it but my pawno chrases. I know whats the problem its Missing Bracket so i have tryed missing bracket finder application and i got this error:

pawn Код:
MISSING BRACKET: The } bracket on line 15070 does not have a pair!
Result:
Opening angle brackets ({): 13187
Closing angle brackets (}): 13188
1 angle brackets without pair! Fix it!
The 15070 line is:
pawn Код:
CreateDynamicObject(2891, 967.28094482422, -1385.8110351563, 13.918733596802, 0, 6, 274);
I know check where you last edited it, but i cant remember.
Do you have any sollutions? Maybe another bracket finder?

Thanks!
Reply
#2

Show us lines 20 up and 20 down..
Reply
#3

Quote:
Originally Posted by IgrexolonO
Посмотреть сообщение
Show us lines 20 up and 20 down..
thats the place where i have my objects its full with them
Reply
#4

So show us 10 lines where Objects starts and ends..
Reply
#5

Objects End:
pawn Код:
//printf("Pickups Max = 100, Current Pickups = %d",pickups);
////printf("DEBUG: Rando Cars %d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,",carselect[0],carselect[1],carselect[2],carselect[3],carselect[4],carselect[5],carselect[6],carselect[7],carselect[8],carselect[9],carselect[10],carselect[11],carselect[12],carselect[13],carselect[14]);
    if (realtime)
    {
        new tmphour;
        new tmpminute;
        new tmpsecond;
        gettime(tmphour, tmpminute, tmpsecond);
        FixHour(tmphour);
        tmphour = shifthour;
        SetWorldTime(tmphour);
    }

    SetTimer("House", 1000, 1);
    synctimer = SetTimer("SyncUp", 60000, 1);
    unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
    celltimer = SetTimer("CellPhoneTimer", 1001, 1);
    SetTimer("RingToner", 500, 0);
    SetTimer("CustomPickups", 1002, 1);
    SetTimer("Health", 1000, 0);
    //SetTimer("IdleKick", idletime, 1);

    SetTimer("AntiTeleport", 1003, 1);
    SetTimer("CheckGas", 35000, 1);
    SetTimer("OtherTimer", 1004, 1);
    //accountstimer = SetTimer("SaveAccount", 1000, 1); //15 mins every account saved
    tutorialtimer = SetTimer("TutorialLoop", 1000, 1);
    SetTimer("Production", 300000, 1);                //5 mins (300000)
    SetTimer("Plantation", 60000, 1);
//SetTimer("Carz", 1000, 1);


    for (new il = 0; il < MAX_VEHICLES; il++)
    {
        GetVehiclePos(il, VehicleInfo[il][CarSpawnX], VehicleInfo[il][CarSpawnY], VehicleInfo[il][CarSpawnZ]);
    }
    return 1;
}


Before Objects:
pawn Код:
for(new i = 0; i < sizeof(DropInfo); i++) {
        if(DropInfo[i][dx] != 0.0 && DropInfo[i][dy] != 0.0 && DropInfo[i][dz] != 0.0) {
            if(DropInfo[i][dType] == 1) {
                if (DropInfo[i][dAmount][0] > 1 || DropInfo[i][dAmount][0] < 35) {

                    DropObject[i] = CreateDynamicObject(gh_GetObjectID(DropInfo[i][dAmount][0]), DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 80.0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);
                }
            }
            else if(DropInfo[i][dType] == 2) {
                    DropObject[i] = CreateDynamicObject(2060, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);

            }
            else if(DropInfo[i][dType] == 3) {
                    DropObject[i] = CreateDynamicObject(1575, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);

            }
            else if(DropInfo[i][dType] == 4) {
                    DropObject[i] = CreateDynamicObject(1212, DropInfo[i][dx], DropInfo[i][dy], DropInfo[i][dz]-1, 0, 0, 0,DropInfo[i][dWorld],-1,-1,200.0);


            }
        }
    }

    for(new i = 0; i < sizeof(FurnInfo); i++) {
        if(FurnInfo[i][fTaken] == 1) {
            if(FurnInfo[i][fWorld] == 0) {
                HouseInfo[FurnInfo[i][fTakenID]][hOTaken]--;
                FurnInfo[i][fx] = 0.0;
                FurnInfo[i][fy] = 0.0;
                FurnInfo[i][fz] = 0.0;
                FurnInfo[i][fTakenID] = 255;
                FurnInfo[i][fTaken] = 0;
            }
            else {
                new objectid = FurnInfo[i][fType];
                if(objectid == 14880 || objectid == 14866 || objectid == 14806
                || objectid == 14446 || objectid == 14391 || objectid == 2738
                || objectid == 2648 || objectid == 2332 || objectid == 1481
                || objectid == 1896 || objectid == 1824 || objectid == 1805
                || objectid == 1281 || objectid == 14651 || objectid == 1280) {
                    FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz], 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
                }
                else if(objectid == 1985) {
                    FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz]+1, 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
                }
                else {
                    FurnObject[i] = CreateStreamObject(FurnInfo[i][fType], FurnInfo[i][fx], FurnInfo[i][fy], FurnInfo[i][fz]-1, 0, 0, FurnInfo[i][fAngle], 200.0, FurnInfo[i][fWorld]);
                }
            }
        }
    }


//============================================================================//

    for(new h = 0; h < sizeof(Jobs); h++) {
        Create3DTextLabel("[Job]",0xFFFFFFFF,Jobs[h][0], Jobs[h][1], Jobs[h][2]+0.75,20.0,0,1);
        CreatePickup(1239, 1, Jobs[h][0],Jobs[h][1],Jobs[h][2]);
    }
    for(new h = 0; h < sizeof(Dealerships); h++) {
        Create3DTextLabel("[Dealership]",0xFFFFFFFF,Dealerships[h][0], Dealerships[h][1], Dealerships[h][2]+0.75,20.0,0,1);
        CreatePickup(1239, 1, Dealerships[h][0],Dealerships[h][1],Dealerships[h][2]);
    }

    for(new h = 0; h < sizeof(DriveThru); h++) {
        Create3DTextLabel("[DriveThru]",0xFFFFFFFF,DriveThru[h][0], DriveThru[h][1], DriveThru[h][2]+0.75,20.0,0,1);
        CreatePickup(1239, 1, DriveThru[h][0],DriveThru[h][1],DriveThru[h][2]);
    }

    for(new h = 0; h < sizeof(EnterSpray); h++) {
        CreatePickup(1239, 1, EnterSpray[h][0],EnterSpray[h][1],EnterSpray[h][2]);
    }

    for(new h = 0; h < sizeof(BenchPress); h++) {
        CreatePickup(1239, 1, BenchPress[h][0],BenchPress[h][1],BenchPress[h][2]);
    }
Reply
#6

The best thing would be to use Notepad++ (CTRL + F) --> type {, press "count", next }, press "count" and compare.. I just found 3 closing brackets before objects, and 2 opening, but it's end of function so function should be closed.
Reply
#7

Quote:
Originally Posted by IgrexolonO
Посмотреть сообщение
The best thing would be to use Notepad++ (CTRL + F) --> type {, press "count", next }, press "count" and compare.. I just found 3 closing brackets before objects, and 2 opening, but it's end of function so function should be closed.
Can i give you like PWN? D: i cant find
Reply
#8

Well, if you want. PM.
Reply
#9

Quote:
Originally Posted by IgrexolonO
Посмотреть сообщение
Well, if you want. PM.
Done, if anyone else could help me, please do :/
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)