• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] A tool/program for finding unmatched brackets?
#1
I'm trying to optimize a script i made a few years ago and seperate it into libraries, i'm re-compiling it after every couple of changes to try and make it as easy as possible to identify errors and mistakes as i go along.

At the moment it won't compile (using pawno) unless i scroll to the bottom of the script first and compile from there (no errors or warnings if i don't scroll to the bottom first, it just doesn't create a working AMX unless i scroll to the bottom before compiling), i've checked the brackets with ctrl F and i've got 3 unmatched brackets (from years ago) which i remember used to cause the same problem in the past.

Does anyone know of any online web programs or software to highlight where unmatched bracket openings/closings begin/end without having to disect the whole script piece-by-piece to narrow down the lines manually?

I've tried searching for something to do this but they just give a long list of errors/warnings unrelated to brackets because they're intended for non-pwn.

Any help or suggestions would be great.
  Reply
#2
First check if you actually have any missing brackets.



https://www.burgershot.gg/showthread.php...1#pid10251
  Reply
#3
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php...1#pid10251

As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them
  Reply
#4
(2021-03-22, 07:48 PM)Fawkes Wrote:
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.



https://www.burgershot.gg/showthread.php...1#pid10251



As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them



Sublime Text 3 or Visual Studio Code might help in this regard but you still need to do manual work of search the line. I would suggest if you gonna use any of this 2 you can collapse the brackets and spot the missing one easier.



Doubt there is any such software, at least for pawn, remember there was an attempt of such program but can't seem to find it anymore
Away
  Reply
#5
(2021-03-23, 10:04 AM)Banditul Wrote:
(2021-03-22, 07:48 PM)Fawkes Wrote:
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php...1#pid10251

As mentioned in my original post, i have 3 umatched brackets. My question is about programs/software to identify the start/end of the unmatched brackets (for pwn)* without having to manually narrow it down block-by-block to find them

Sublime Text 3 or Visual Studio Code might help in this regard but you still need to do manual work of search the line. I would suggest if you gonna use any of this 2 you can collapse the brackets and spot the missing one easier.

Doubt there is any such software, at least for pawn, remember there was an attempt of such program but can't seem to find it anymore
Me neither, the link (https://gallery.technet.microsoft.com/Mi...r-e0a5f0e1) is dead.

I've it somewhere on my old PC tho so I'll check it in few days.
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Forum Jump: