Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Script error <-lolwut? o.O


Pallash
 Share

Recommended Posts

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: script1
Error 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

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...