Trying something new, and it is already a pain in the a**(can't say that, can I)
here is my code, all of the code that has got only the slightest contact with it.
and the error I get is:
line 135:Syntax error with
here is my code, all of the code that has got only the slightest contact with it.
JASS:
//! textmacro NUnitAtLocFunc takes INSTANCE, AMOUNT, IntID, PLAYER
function NUAL$INSTANCE$ takes nothing returns nothing
call CreateNUnitsAtLoc( $AMOUNT$, $IntID$, $PLAYER$, GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
endfunction
//! endtextmacro
JASS:
function Trig_Substringtest_Actions takes nothing returns nothing
if (SubStringBJ(GetEventPlayerChatString(), 2, 5) == "nggr") then
//call CreateNUnitsAtLoc( 1, 'nggr', Player(1), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
//! runtextmacro NUnitAtLocFunc("1","1","'nggr'","Player(0)")
else
//call CreateNUnitsAtLoc(1, 'hsor', Player(1), GetRectCenter(GetPlayableMapRect()), bj_UNIT_FACING )
//! runtextmacro NUnitAtLocFunc("2","1","'hsor'","Player(0)")
endif
endfunction
//===========================================================================
function InitTrig_Substringtest takes nothing returns nothing
set gg_trg_Substringtest = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Substringtest, Player(0), "-", false )
call TriggerAddAction( gg_trg_Substringtest, function Trig_Substringtest_Actions )
endfunction
and the error I get is:
line 135:Syntax error with