View Single Post
  #7  
Old 06-20-2010, 03:57 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by qw3rt View Post
Yep thanks

i used like this and it works :

PHP Code:
 if (i<50)
    
lay2 bombs,x,y+2;lay2 bombs,x,y
In fact it gaves me 2 bombs icons but it messed cause the secand icons was hidden by the first one, due to the same lay position.

thanks
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;

Reply With Quote