do...while in pawn? (if not, why crash!)
#1

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!
Reply
#2

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

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).
Reply
#4

Can you show what you have edited lately?
Reply
#5

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

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

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

tell your id, I'll add you
Reply
#9

I messaged you.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)