nested functions not supported??!

Started by Minimi, Thu 20/11/2003 23:04:08

Previous topic - Next topic

Minimi

What does that mean??  When I try to save the game, it gives an error, and says, "Nested functions not supported".

It gives an error about the global script. here is the part that gives an error.

function character2_b() {
 // script for character2: Use inventory on character
 if (character[getplayercharacter()].activeinv == 8) {
SetGlobalInt(5,GetGlobalInt(5)+1);
SetGlobalInt(4,1);
DisplayMessage(63);
LoseInventory(8)
 
}


Please help me!

scotch

#1
Try putting another } after the last }, that might help assuming that that really is the end of this funtion.
The error means that you're trying to create a function inside another function, usually caused by accidentally missing out a } at the end of the previous function.

Minimi

WTF!!! I must have done something wrong because the FUC***** program crasht... and now I have to rewrite my 300 sentences long dialog!!! ARGH!!! I'm going to bed! I'm to annoyed!!!!!!!!!!!!!!!!!!11111

Scummbuddy

well, what scotch said is right... if its still needed.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

SMF spam blocked by CleanTalk