• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

GetIssuedOrderID

Status
Not open for further replies.
Level 12
Joined
May 20, 2009
Messages
822
Does GetIssuedOrderID provide the integer ID or the string ID? If it's the string, what can I use to get the integer ID?

If it already is the Integer ID, then what am I doing wrong here? It's telling me "Invalid type for specified operator"

JASS:
if GetIssuedOrderId() != udg_U_Build_BuildingOrder[udg_U_Build_Index[12]] then

U_Build_BuildingOrder is an Integer variable, because it's the only way I can get the Order ID of the "abilities" I'm looking for (They only have Integer IDs, no String IDs) which are the individual build building abilities in the Build Building menus.

EDIT: I actually totally forgot that U_Build_BuildingOrder is not an integer, it is a string. Because the Order ID integer was too long to be put into the GUI for it. But now I have another problem. When I try to do,

JASS:
Custom script:   if orderid != S2I(udg_U_Build_BuildingOrder[udg_U_Build_Index[12]])

The Editor crashes. Completely. Just completely crashes. It does this with I2S as well.
 
Last edited:
Status
Not open for further replies.
Top