Heloes Hive Workshop
I have encountered a weird problem. When I try to create a unit and then set unit type variable as the last created unit, the editor says it's an invalid argument type. The code goes as follows:
Where 'mhm' is Triggering Player, 'liczby[24]' is a number from an array, 'udg_Tablica_inne' is a hashtable of integers. Any solutions? The whole code is kinda long, so I didn't post it here (it's a loading function). Prevously I had everything in GUI and it worked, now I tried converting last of my scripts to JASS (just for them to be JASS) and then I got the problem.
I have encountered a weird problem. When I try to create a unit and then set unit type variable as the last created unit, the editor says it's an invalid argument type. The code goes as follows:
JASS:
set bo = CreateUnitAtLoc(GetPlayerId(mhm),LoadIntegerBJ(liczby[24],0,udg_Tablica_inne),GetRectCenter(GetPlayableMapRect()),0)
Where 'mhm' is Triggering Player, 'liczby[24]' is a number from an array, 'udg_Tablica_inne' is a hashtable of integers. Any solutions? The whole code is kinda long, so I didn't post it here (it's a loading function). Prevously I had everything in GUI and it worked, now I tried converting last of my scripts to JASS (just for them to be JASS) and then I got the problem.