14.03.2012, 15:21
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"
Solution 2: Try putting a return 1; at each if statement.
Hope that helped.
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
pawn Код:
if
{
//bla bla bla
//bla bla here
return 1;
}