i have a problem
i don't understand this code ( demos files " bakery" )
if FlourTank < 100 && !MoveMan then
MoveMan = 1
endif
if MoveMan then
if MoveMan < 5 then
MoveMan = MoveMan + 1
else
MoveMan = 1
FlourTank = FlourTank + 10
endif
my question is :
1. MoveMan = integer ( 1 to 10 ) and ( ! = not ) therefore the code "!MoveMan" = what's this ?
2.this code follow :
if FlourTank < 100 && !MoveMan then
MoveMan = 1
value = what's this ( boolean or integer )
3 this code follow :
if TankOpen && FlourTank then
MillerOpen = FALSE
if Miller < 100 then
FlourTank = FlourTank - 5
Miller = Miller + 5
else
TankOpen = FALSE
endif
else
TankOpen = FALSE
endif
- tankopen = boolean
- flourtank = integer
=> why to use " TankOpen && FlourTank " therefore what is new value of the expression ?
please help me !
thank for reading
looking forward answering
This post has been edited by biglam106: 19 August 2009 - 12:54 PM
Sign In »
Register Now!
Help



Back to top










