Parse error for if statement

Started by Cordate, Sat 15/10/2022 21:16:46

Previous topic - Next topic

Cordate

When I try testing the game, I get a parse error message in the debug window for the if statement line, but I'm not sure what's wrong with it. I've used similar if statements in other parts of the game so idk what the issue is here:


Code: ags
function MITEDC2_OnClick(GUIControl *control, MouseButton button)
{
  MITEDChoice.Visible = false;
  MITEDialog.Visible = false;
  if ( MITEDC2.Graphic = 569 )
  {
    MITEDialog2.Visible = true;
  }
  if ( MITEDC2.Graphic = 436 )
  {
    MITEDialog2.Visible = true;
    MITECD1.NormalGraphic = 438;
    MITECD1.PushedGraphic = 438;
    MITECD1.MouseOverGraphic = 438;
  }
}

Khris



SMF spam blocked by CleanTalk