runtime error 6

darkgoddessnight
24 Oct 2006, 13:48
I keep getting a runtime error 6 overflow. What does this mean and how do I fix it?

darkgoddessnight
24 Oct 2006, 13:51
Nevermind, I fixed it :oops:

Alex
24 Oct 2006, 14:13
Could you let me know what the problem was and how you fixed it? Ideally Quest shouldn't ever crash with a run-time error - if there's a problem in your code, it should report it nicely. I realise this is not always the case, so if you could let me know how you can get Quest to crash I can take a look into it.

darkgoddessnight
24 Oct 2006, 15:26
It was an if command. I had added and extra 'else' line to the command so it looked like this.

define room <log in>
alias <Welcome to E'tanalesia>
script do <log_in>
command <Aquarian> {
msg <Aquarians are a race of water dwelling humanoids. They are often

confused with mermaids; however, they do not have tails. Instead, they have webbed fingers

and toes that allow them to swim easily in the water. Their specialized lungs will allow

them to breathe air as well as water, but only for a short period of time. When they do

venture out of the water, they do not go far as water is their primary life force. On land,

they feel awkward and are constantly thirsty. They become dehydrated quickly and sometimes

pass out from lack of fluids. They generally blend in with their surroundings, their skin,

eye, and hair colors ranging in silvers, blues, and greens, and their hair is the texture of

seaweed.|n>
msg <Do you want to be an Aquarian?>
enter <answer>
if ( #answer# = yes ) then {
set string <player_race; Aquarian>
msg <You are now an Aquarian.>
}
else do <choose_race>
}
else do <choose_race>
}

I took out the extra else and it worked fine. :D