2021-03-14, 01:37 PM
(2021-03-14, 11:45 AM)Y_Less Wrote: Yes, that's exactly the problem (probably, there are cases where it isn't, but they're rare).? As I said, indent your code.? Or you can revert to an earlier commit and redo the changes.
I understand, I will try to look for those brackets. Otherwise I'll have to start translating again :P
Quote:Yes. The numbers have to be the same. I would just keep deleting parts of the gamemode and keep checking if the difference is still the same. I would probably first delete half of the gamemode and then check if the difference is the same. If it's the same, that means the deleted part of the code did not have a missing or an extra bracket. If you delete a part of the code and you see a change in the difference of the number then you can undo the deletion of the code and paste it in another empty file and keep deleting parts of that code also. But that's just me. You can try other things to help you with the missing brackets.
A few years ago I did have a tool that checked the curly brackets exactly for .pwn files. Someone in the sa-mp community I think created that tool. You would just drop the .pwn file on the tool. Then it would scan the file. It would show the number of opened and closed brackets and it would show the line at which the opened bracket is missing a closed bracket which either means it is actually missing a curly bracket or you have an extra one which was mentioned in the tool on that exact line. I'll try to dig up more and see if I can find it again.
That's a very good idea! I will try to do that. Although if you find that tool I would really appreciate it if you could pass it on to me.
Again, thank you very much for responding, you have really helped me a lot. I had no idea how to solve this problem.