SOLVED: fatal error at display command

Started by Ruben654, Tue 26/05/2009 15:25:12

Previous topic - Next topic

Ruben654

i have a problem cause i've got this error
Quote---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x00487E65 ; program pointer is +77, ACI version 3.10.1050, gtags (2,2)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and post the details on the AGS Technical Forum.

in "room2.asc", line 27


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.

An error file CrashInfo.dmp has been created. You may be asked to upload this file when reporting this problem on the AGS Forums. (code 0)
---------------------------
OK  
---------------------------
and this the script from what i get the error
Code: ags
function room_FirstLoad()
{
  player.SayAt(120, 119, 100, "Whoa what's happening");
  Wait(20);
  player.SayAt(120, 119, 100, "I feel sick");
  Wait(60);
  int trans = oWarp.Transparency;
  while (trans < 100) {
    trans++;
    oWarp.Transparency = trans;
    Wait(1);
  }
  oWarp.Visible = false;
  player.Say("It's gone?");
  Wait(20);
  Display("Welcome to level %s", player.Room); //the error line
}
please help me i dont know what to do ??? ??? ??? ??? ??? ??? ??? ??? ??? :=

Gilbert

player.Room is an integer, not a string.

So, just change the line to:
Display("Welcome to level %d", player.Room);

Ruben654

Quote from: Gilbet V7000a on Tue 26/05/2009 15:33:20
player.Room is an integer, not a string.

So, just change the line to:
Display("Welcome to level %d", player.Room);
thanks i didn't know that :)

Trent R

To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk