SA-MP Forums Archive
DCMD to ZCMD causing PAWN compiler to stop working. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: DCMD to ZCMD causing PAWN compiler to stop working. (/showthread.php?tid=359184)



DCMD to ZCMD causing PAWN compiler to stop working. - Xenoyia - 13.07.2012

Hello,

I manage a huge gamemode (17,000+ lines) and I recently converted it to ZCMD from the old DCMD format. However after doing so the pawn compiler library is stopping working each time I try to compile, and I am unable to find the source of the problem due to how large the GM is.

What I've done so far:

- Replace all mentions of dcmd_ with COMMAND:
- Remove the list of dcmd command indexes
- Start PAWN as an administrator

Thanks, unfortunately I can not under any circumstances share the script as it is private.


Re: DCMD to ZCMD causing PAWN compiler to stop working. - clarencecuzz - 13.07.2012

If you are not willing to share your script, what do you expect us to do!? Are we supposed to just 'guess' what the problem in your script is, without seeing it? If you're not going to THINK of how things work first, don't post.


Re: DCMD to ZCMD causing PAWN compiler to stop working. - JaKe Elite - 13.07.2012

Post your script.
No one gonna still it.


Re: DCMD to ZCMD causing PAWN compiler to stop working. - Xenoyia - 13.07.2012

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
If you are not willing to share your script, what do you expect us to do!? Are we supposed to just 'guess' what the problem in your script is, without seeing it? If you're not going to THINK of how things work first, don't post.
Because I am hoping someone can point me in the right direction of where these crashes start from.

Don't be so grabby. :P

Quote:
Originally Posted by Romel
Посмотреть сообщение
Post your script.
No one gonna still it.
No-can-do. I only need to know what causes these.


Re: DCMD to ZCMD causing PAWN compiler to stop working. - clarencecuzz - 13.07.2012

There are countless things that might cause this. I have fixed about 4 of these in the past 2 days, 1 cause was a stock function that didn't agree with the script, which included updating an Experience bar. One was missing a brace on an enum. One was not finishing OnDialogResponse with a return and a brace, and the other was also a bad stock function. I had to scan the 20k line script for about 30 minutes before I found the error, so it shouldn't take you too long either.


Re: DCMD to ZCMD causing PAWN compiler to stop working. - Xenoyia - 13.07.2012

Quote:
Originally Posted by clarencecuzz
Посмотреть сообщение
There are countless things that might cause this. I have fixed about 4 of these in the past 2 days, 1 cause was a stock function that didn't agree with the script, which included updating an Experience bar. One was missing a brace on an enum. One was not finishing OnDialogResponse with a return and a brace, and the other was also a bad stock function. I had to scan the 20k line script for about 30 minutes before I found the error, so it shouldn't take you too long either.
Thanks. I'll have a look.