Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] A tool/program for finding unmatched brackets?

 
  • 0 Vote(s) - 0 Average
Pawn A tool/program for finding unmatched brackets?
Fawkes
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Mar 2021
Reputation: 0
Location: United Kingdom
#1
2021-03-22, 06:10 PM (This post was last modified: 2021-03-22, 06:14 PM by Fawkes.)
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.
Virsenas
Offline

Burgershot Member
Posts: 47
Threads: 0
Joined: Feb 2021
Reputation: 6
#2
2021-03-22, 07:32 PM
First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#pid10251
Fawkes
Offline

Burgershot Member
Posts: 4
Threads: 1
Joined: Mar 2021
Reputation: 0
Location: United Kingdom
#3
2021-03-22, 07:48 PM (This post was last modified: 2021-03-22, 08:16 PM by Fawkes.)
(2021-03-22, 07:32 PM)Virsenas Wrote: First check if you actually have any missing brackets.

https://www.burgershot.gg/showthread.php?tid=1763&pid=10251#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
Banditul Away

Burgershot Member
Posts: 38
Threads: 0
Joined: Apr 2019
Reputation: 2
#4
2021-03-23, 10:04 AM
(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?tid=1763&pid=10251#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
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#5
2021-03-23, 10:07 AM (This post was last modified: 2021-03-23, 10:07 AM by Pinch.)
(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?tid=1763&pid=10251#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/Missing-Bracket-Finder-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.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode