Forum

> > Stranded II > Scripts > on error
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch on error

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt on error

Corvallis5
User Off Offline

Zitieren
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
1× editiert, zuletzt 23.01.12 01:59:21

alt Re: on error

Hurri04
Super User Off Offline

Zitieren
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.

alt Re: on error

Stranded_Guy2910
User Off Offline

Zitieren
remember to don't put scripts like that:

on:changeday{
          script;
          on:use {
          script;
     }
}
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht