Looping question.
#2

Well, if I'm not wrong you have two solutions to your problem. If I'm correct, the thing is that your loop keeps going on for some time. Try doing this:

Solution 1: Instead of that many if if if if one after the other, use "else if" and at the last one use "else"
pawn Код:
if
if
if
if

// Doing

if
else if
else if
else if
else
Solution 2: Try putting a return 1; at each if statement.
pawn Код:
if
{
//bla bla bla
//bla bla here
        return 1;
}
Hope that helped.
Reply


Messages In This Thread
Looping question. - by viddo - 14.03.2012, 14:47
Re: Looping question. - by antonio112 - 14.03.2012, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)