Annoying error
sonic102
21 May 2012, 06:59I have an annoying error that happens for no reason.
Look:
You'll notice that there is no bracket missing.
This happened to me before too.

Failed to load game.
The following errors occurred:
Error adding script 'if (GetBoolean(newspaper, "copy") and GetBoolean(securitycard, "purple")) {
securitycard.look = "A police security card with the words: Authorized police. Allow to pass.
SetObjectFlagOn (securitycard, "police")
}
else if (GetBoolean(newspaper, "copy")) {
msg ("You need to change the colour first.")
}
else {
msg ("What are you copying?")
}': Missing '}'
You'll notice that there is no bracket missing.
This happened to me before too.

Pertex
21 May 2012, 07:06Ah yes. Here is a " missing:
securitycard.look = "A police security card with the words: Authorized police. Allow to pass.
sonic102
21 May 2012, 07:13Ooh yeah. Great eyes Pertex! I was checking for missing brackets that I did not notice the "quotes"!
Oh, and can Alex make a better error system so 'miserrors' like this won't happen?
Thanks again!
Oh, and can Alex make a better error system so 'miserrors' like this won't happen?
Thanks again!


Pertex
21 May 2012, 07:40I don't know. The message is not wrong at all. You start a string with " and Quest is looking for a second " to end the string. Quest finds this in the next line with the character in front of "police". Then the parser expects a new command or a }. 'police' is not a command so there must be a }