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
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 ??? ??? ??? ??? ??? ??? ??? ??? ??? :=
player.Room is an integer, not a string.
So, just change the line to:
Display("Welcome to level %d", player.Room);
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 :)
Check out the manual entry entitled, String formatting (http://www.adventuregamestudio.co.uk/manual/StringFormats.htm).
~Trent