
06-20-2010, 07:50 PM
|
|
qW£rt Classic Iphone
|
 |
Join Date: Jun 2010
Location: France
Posts: 34
|
|
Quote:
Originally Posted by Riot
Note that this probably doesn't work like you want.
Your code currently reads like:
PHP Code:
if (i < 50) {
lay2 bombs,x,y+2;
}
lay2 bombs,x,y;
The second statement, lay2 bombs,x,y;, will always be executed in this situation.
If statements without brackets will only work for the next statement.
What you want is something like:
PHP Code:
if (i < 50) {
lay2 bombs,x,y+2;
lay2 bombs,x,y;
}
|
it worked but yea at one moment there were always the same things laid i forgot to close the if } thanks
Quote:
Originally Posted by DustyPorViva
Also:
PHP Code:
if (i < 50) {
lay2 bombs,x-random(-2,2),y-random(-2,2);
lay2 bombs,x-random(-2,2),y-random(-2,2);
}
Will take care of the problem of everything stacking in the same place.
|
that what i did i found it on the commands.pdf cause it was boring to manually enter the position thanks for the help. |
__________________
|
|
|
|