Pallash Posted July 9, 2010 Author Share Posted July 9, 2010 yo guys just began a script, even if im newbie I tried it with a tuto from youtube.well what ever.Im making a flash game, I wana include it into my game but the flash game got an error at scripting.This is teh script:```( if(hspeed == 0) ( if (random(3)<1 " place_free(x-4,y)) (hspeed = -4; vspeed = 0;) if (random(3)<1 " place_free(x+4,y)) (hspeed = 4; vspeed =0;) ) else ( if (random(3)<1 " place_free(x,y-4)) (hspeed = 0; vspeed = -4;) if (random(3)<1 " place_free(x,y+4)) (hspeed = 0; vspeed =4;) ))```and this is the error when I try to run the game```___________________________________________COMPILATION ERROR in Script: script1Error in code at line 2: if(hspeed == 0) ^at position 3: Unexpected symbol in expression.```well it is prebably the "f" but why? o.O and can I fix that?if you need more info I will reply you, feel free to ask. Link to comment Share on other sites More sharing options...
Chakkra Posted July 17, 2010 Share Posted July 17, 2010 Too many = signs Link to comment Share on other sites More sharing options...
guzmanm Posted July 17, 2010 Share Posted July 17, 2010 @Pallash:> ```> _________________________________________> COMPILATION ERROR in Script: script1> Error in code at line 2:> if(hspeed == 0)> ^> at position 3: Unexpected symbol in expression.> > ```wtf? hspeed **==** 0? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now