View Single Post
  #9  
Old 06-20-2010, 07:50 PM
qw3rt qw3rt is offline
qW£rt Classic Iphone
qw3rt's Avatar
Join Date: Jun 2010
Location: France
Posts: 34
qw3rt is an unknown quantity at this point
Quote:
Originally Posted by Riot View Post
Note that this probably doesn't work like you want.

Your code currently reads like:
PHP Code:
if (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 (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 View Post
Also:

PHP Code:
if (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.
__________________
Reply With Quote