Dois
New Member
- Reaction score
- 1
String2OrderIdBJ()
JassCraft says that...
But whats the use of it since theres
Do I need to worry about something if I replace "String2OrderIdBJ" with "OrderId"?
Either way it will return the OrderId... if (orderId == 0) won't it just return 0 anyway?
JASS:
function String2OrderIdBJ takes string orderIdString returns integer
local integer orderId
// Check to see if it's a generic order.
set orderId = OrderId(orderIdString)
if (orderId != 0) then
return orderId
endif
// Check to see if it's a (train) unit order.
set orderId = UnitId(orderIdString)
if (orderId != 0) then
return orderId
endif
// Unrecognized - return 0
return 0
endfunction
But whats the use of it since theres
Do I need to worry about something if I replace "String2OrderIdBJ" with "OrderId"?
Either way it will return the OrderId... if (orderId == 0) won't it just return 0 anyway?