SA-MP Forums Archive
do...while in pawn? (if not, why crash!) - 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: do...while in pawn? (if not, why crash!) (/showthread.php?tid=557480)



do...while in pawn? (if not, why crash!) - Crayder - 14.01.2015

DOES DO..WHILE WORK IN PAWN?
Ok, in C++ you can use do..while like this:
pawn Код:
do
{
    //stuff
}
while(i<j)
Most of us would do this:
pawn Код:
while(i<j)
{
    //stuff
}
It's not important to me, I just want to know if this works in pawno...

WHY IS PAWNCC CRASHING?
Ok, it's not like a missing bracket crash. The only thing I can figure the cause being is the do..while thing I mentioned above. I'm going to test without do before moving forward on the question...

EDIT: Just tested, do..while is not causing the crash!


Re: do...while in pawn? (if not, why crash!) - ATGOggy - 14.01.2015

This will help you:
https://sampwiki.blast.hk/wiki/Control_Structures


Re: do...while in pawn? (if not, why crash!) - Crayder - 14.01.2015

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Well, that does say that do..while does exist in pawn. That's cool and thanks for showing me.

But I still have this pawno crash.

It's instant, as soon as I hit compile the compiler crashes with the "Pawn Compiler library has encountered a problem and needs to close. We are sorry for the inconvenience." message.

I'm almost 2000% sure it's not missing brackets, I always keep my work PERFECTLY indented (of course we all have our own definition of perfect indentation).


Re: do...while in pawn? (if not, why crash!) - ATGOggy - 14.01.2015

Can you show what you have edited lately?


Re: do...while in pawn? (if not, why crash!) - Crayder - 14.01.2015

Actually I just translated an entire script to pawn... I dont want to show it publicly, do you have skype?


Re: do...while in pawn? (if not, why crash!) - ATGOggy - 14.01.2015

I don't have skype, I have fb> connect me : http://www.********.com/amal.murali.792


Re: do...while in pawn? (if not, why crash!) - Crayder - 14.01.2015

I cant add you, I can only follow... My message will be in your other folder


Re: do...while in pawn? (if not, why crash!) - ATGOggy - 14.01.2015

tell your id, I'll add you


Re: do...while in pawn? (if not, why crash!) - Crayder - 14.01.2015

I messaged you.


Re: do...while in pawn? (if not, why crash!) - CalvinC - 14.01.2015

Please use PM to talk together, instead of spamming up the topic.
Pawncc crashing does not mean you forgot a bracket, for me it can commonly be a function you have a spelling mistake in.