[Galaxy] Implicit Cast and Syntax Error

Sevion

The DIY Ninja
Reaction score
413
Does anyone know why this line is causing an Implicit Cast error and a Syntax Error?

JASS:
libNtve_gf_SetDialogItemImage(gv_characterImage[0], "Images\\OfficerCharacter.tga", PlayerGroupSingle(EventPlayer()));


gv_characterImage is an int array.
 

Arkless

New Member
Reaction score
31
don't mind me, I talked before testing... again :p

int = dialog control, so I was wrong

JASS:
libNtve_gf_SetDialogItemImage(<dialog control>, <string>, <player group>);


so an int does not fit there
 

Sevion

The DIY Ninja
Reaction score
413
I made my function look EXACTLY like the GUI generated Galaxy with the exception of the global instead of a local. I still don't know why it doesn't work.

Edit: The script checker is once again broken. It highlights the line BELOW the error. It was me attempting to set a unit variable to UnitCreate() which doesn't return the right type, creating the implict error. Which is stupid if you think about it.

Because now you're FORCED to use UnitLastCreated()... Which is stupid...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top