My code is:
function on_event(EventType event, int data) {
Ã, if (event=eEventGotScore) {
Ã, Ã, if (game.score==140) player.ChangeRoom(14);
Ã, }
}
The error message for the '(' is the line where the 'function on_event' is (can't remember line number).
I shall try that code with the extra '=' now Ashen, will edit ASAP.
EDIT: works perfectly now, thanks Ashen, have a merry christmas!
function on_event(EventType event, int data) {
Ã, if (event=eEventGotScore) {
Ã, Ã, if (game.score==140) player.ChangeRoom(14);
Ã, }
}
The error message for the '(' is the line where the 'function on_event' is (can't remember line number).
I shall try that code with the extra '=' now Ashen, will edit ASAP.
EDIT: works perfectly now, thanks Ashen, have a merry christmas!