Error (most likely been answered before) - SOLVED

Started by BlackMan890, Mon 23/08/2004 16:22:17

Previous topic - Next topic

BlackMan890

Hi guys :D

here is the error:

An error has accured. Please contact the game author for support, as this is likely to be a scripting error and not a bug in AGS.
(ACI version 2.61.747)

(Global script line 101)
Error: DysplayMessage: Invalid message number to Display

This error comes when i test the game and look at a hotspot, what this hotspot does is let the caracter look at it (in direction) and then dysplays a message, the message is dysplaid and the it comes,

line 101 in global script is:

94 function on_mouse_click(int button) // called when a mouse button is clicked.  button is either LEFT or RIGHT
95   {
96   if (IsGamePaused()==1) // Game is paused, so do nothing (ie. don't allow
mouse click)
97     {
98     }
99   else if (button==LEFT)
100    {
101    ProcessClick(mouse.x,mouse.y,GetCursorMode());
102    }
103  else // right-click, so cycle cursor
104    {   
105    SetNextCursorMode();
106    }
107  }

help please
Jonatan Nilsson
860 Iceland

Please go to www.simnet.is/elinnils52 and download my non ags/adventure game :)

Mr Jake

can you post the look script for the object please?

BlackMan890

FaceLocation (CHARACTER, 216, 80);
DisplayMessage (1);
Jonatan Nilsson
860 Iceland

Please go to www.simnet.is/elinnils52 and download my non ags/adventure game :)

Mr Jake

have you put message 1 rather than message 0 (0 being the first) by accident?

BlackMan890

ah now i understand, i didn't use code, and when i did, edit message it had been checked a box that says, dysplay the next message, but that message doesn't exist :=
thanks Hotspot for the help
Jonatan Nilsson
860 Iceland

Please go to www.simnet.is/elinnils52 and download my non ags/adventure game :)

Mr Jake


SMF spam blocked by CleanTalk