Illegal exception (SOLVED)

Started by AnInhumer, Mon 21/02/2005 20:23:08

Previous topic - Next topic

AnInhumer

I was attemptting to test my game when I recieved an "Illegal exception":

An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x00417BB0 ; program pointer is +6, ACI version 2.62.772, gtags (0,0)

If it helps at all I have added this script to:   function repeatedly_execute

string buffer;
GetLocationName(mouse.x,mouse.y,buffer);
string cursor;
if (GetCursorMode() == MODE_WALK)
{
StrCopy (cursor,"Walk to ");
}
else if (GetCursorMode() == MODE_LOOK)
{
StrCopy (cursor,"Look at");
}
else if (GetCursorMode() == MODE_USE)
{
StrCopy (cursor,"Use ");
}
SetLabelText(0,0,cursor+buffer);
}

Ishmael

Quote from: AnInhumer on Mon 21/02/2005 20:23:08
SetLabelText(0,0,cursor+buffer);

You're not allowed to do this. You should do as:

  StrCat(cursor, buffer);
  SetLabeText(0,0,cursor);

AGS handles strings only through functions, unlike integers.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.


SMF spam blocked by CleanTalk