Forum

> > Stranded II > Scripts > on error
Forums overviewStranded II overview Scripts overviewLog in to reply

English on error

2 replies
To the start Previous 1 Next To the start

old on error

Corvallis5
User Off Offline

Quote
i keep getting error messages saying 'on' must not be subordinated to conditions when I do a script like
on:changeday
on:kill
(or something like that, I havent changed anything from the origianl) the scripts ussually still work though, and when I move the placement of the script (like putting an on:changeday script, before and on:use script the error messages sometimes go away)

thanks
edited 1×, last 23.01.12 01:59:21 am

old Re: on error

Hurri04
Super User Off Offline

Quote
usually this happens when there is a } bracket missing or so.

use notepad++ and tab in all the lines correctly like this:
1
2
3
on:changeday {
	msg "Hello World!";
}
so you can see where the bracket is missing.

otherwise just post the whole code in here, just use the code tag when you do, like I did in my example.

old Re: on error

Stranded_Guy2910
User Off Offline

Quote
remember to don't put scripts like that:

on:changeday{
          script;
          on:use {
          script;
     }
}
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview