USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 7/24/09 07:13 AM
Sign-Up: 02/06/08
Posts: 119
Hi guys, I've added this code;
if(_root.player.char._currentframe!=7) && (_root.player.char.strong._currentframe! =>12)
Where if the players not dead, or in the middle of an attack, he can do something, but it's not accepting it
How do I allow to if conditions?
Posted at: 7/24/09 07:17 AM
Sign-Up: 08/01/08
Posts: 1,557
if(_root.player.char._currentframe!=7 && _root.player.char.strong._currentframe!=>12){ //code here }
This should work.
"When you look at yourself from a universal standpoint, something inside always reminds or informs you that there are bigger and better things to worry about. "- Einstein
Posted at: 7/24/09 07:21 AM
Sign-Up: 08/10/05
Posts: 6,031
Also < instead of !=>
Portfolio(Under construction): UnknownFury.com | Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com Follow me on twitter!
At 7/24/09 07:17 AM, 4urentertainment wrote: if(_root.player.char._currentframe!=7 && _root.player.char.strong._currentframe!=
>12){
//code here } This should work.
**Error** Scene=Scene 1, layer=Character, frame=3:Line 21: Operator '!=' must be followed by an operand
Posted at: 7/24/09 07:25 AM
At 7/24/09 07:21 AM, UnrealCanine wrote: **Error** Scene=Scene 1, layer=Character, frame=3:Line 21: Operator '!=' must be followed by an operand
Like UnknownFury said, you can't have !=> just do <
Posted at: 7/24/09 07:31 AM
Yeah, I got that error before I read his post
All times are Eastern Standard Time (GMT -5) | Current Time: 10:31 PM
<< Back