missing bracket
#1

its been writen 1000 times on this forum,i used the search function,used 3-4 programs,none of them worked,except one that has told me im missing 3 brackets but the lines it gave me were wrong i could identify missing brackets there.

any other way to find missing brackets besides the non-working programs?

ty in advance
Reply
#2

Does the compiler report the missing bracket? I've always been under the impression that the Pawn compiler already had a more-than-acceptable lint system, unless it is misinterpreting your bracket structure.
Reply
#3

Quote:
Originally Posted by ComDuck
Посмотреть сообщение
Does the compiler report the missing bracket? I've always been under the impression that the Pawn compiler already had a more-than-acceptable lint system, unless it is misinterpreting your bracket structure.
it doenst show any errors, it just doesnt compile and shows blank white no errors no info nothing
Reply
#4

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
it doenst show any errors, it just doesnt compile and shows blank white no errors no info nothing
Are you using the built-in Pawn compiler or a different compiler? How long did the compilation time stretch to before you force quit it? Can you show me your header (includes) from the script?

EDIT: Nevermind, I see what your actual issue is. How about using the Pawn pre-processor directive #endinput before certain functions begin? You said that a program reports 3 missing brackets. How about you throw an #endinput before the function that contains those 3 missing brackets and see if it compiles properly?

See more information on Pawn pre-processor directives. Ctrl + F to #endinput.
Reply
#5

Check your last modification you've done before making the script not able to compile, and match each brace with its pair, you'll easily find the missing brace if the code is clean, nicely indented.
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
Missing braces (which is what I assume you mean by "brackets") are easy to spot if you indent your code correctly.
yes it is intented correctly,the problem is that it has 50k lines and i dont know what thing i added last because its a project i didnt work on for months.

Quote:
Originally Posted by TheToretto
Посмотреть сообщение
Check your last modification you've done before making the script not able to compile, and match each brace with its pair, you'll easily find the missing brace if the code is clean, nicely indented.
i dont know what i added last, i would have done that if i knew
Reply
#7

Try to find any backup from before. And anytime I was having missing brackets compiler gave me a lot of errors like 20 undefinied symbols
Reply
#8

i dont have a backup,im trying to fix this one..other thoughts
Reply
#9

edit : Solved it by commenting piece by piece until i got errors,then i could find the problem much easier ,thanks everyone !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)