Question
New Member
- Reaction score
- 0
when i save map it say script error and shows these 2.
in the 1st one it says ''invalid type for specified operator'' for the ''return 0''
in the 2nd one it says ''expected a function name'' for the ''<<<<'' marked one
how do i fix these errors?
in the 1st one it says ''invalid type for specified operator'' for the ''return 0''
JASS:
in the 2nd one it says ''expected a function name'' for the ''<<<<'' marked one
JASS:
call SetAllItemTypeSlots(11)
call SetAllUnitTypeSlots(11)
set bj_stockUpdateTimer=CreateTimer()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INITIAL_DELAY,false,function pd) <<<<<
set bj_stockItemPurchased=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(bj_stockItemPurchased,Player(15),EVENT_PLAYER_UNIT_SELL_ITEM,null)
call TriggerAddAction(bj_stockItemPurchased,function RemovePurchasedItem)
call DetectGameStarted()
set i=0
set i=0
loop
exitwhen(i>11)
set udg_booleans01<i>=false
set udg_reals01<i>=0
set udg_strings01<i>=""
set i=i+1
endloop</i></i></i>
how do i fix these errors?