• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] error 017: undefined symbol
#13
(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.
  Reply


Messages In This Thread
error 017: undefined symbol - by Boxi - 2021-03-13, 08:41 PM
RE: error 017: undefined symbol - by RhaegarX - 2021-03-13, 09:06 PM
RE: error 017: undefined symbol - by Boxi - 2021-03-13, 09:50 PM
RE: error 017: undefined symbol - by Radical - 2021-03-13, 10:05 PM
RE: error 017: undefined symbol - by Boxi - 2021-03-13, 11:47 PM
RE: error 017: undefined symbol - by Y_Less - 2021-03-13, 10:37 PM
RE: error 017: undefined symbol - by Boxi - 2021-03-13, 11:53 PM
RE: error 017: undefined symbol - by Virsenas - 2021-03-14, 01:06 AM
RE: error 017: undefined symbol - by Y_Less - 2021-03-14, 02:08 AM
RE: error 017: undefined symbol - by Boxi - 2021-03-14, 03:41 AM
RE: error 017: undefined symbol - by Y_Less - 2021-03-14, 11:45 AM
RE: error 017: undefined symbol - by Boxi - 2021-03-14, 01:37 PM
RE: error 017: undefined symbol - by Virsenas - 2021-03-14, 12:04 PM

Forum Jump: