- Joined
- Oct 10, 2009
- Messages
- 1,425
FIXED
thanks to watermelon_1234
well, i have a vJass trigger that has no errors in it that JNPG can pick up, but when i enable it i cannot test my map. WE crashes... anybody know why?
+Rep and a big thanks to whoever helps or fixes :/
thanks to watermelon_1234
well, i have a vJass trigger that has no errors in it that JNPG can pick up, but when i enable it i cannot test my map. WE crashes... anybody know why?
JASS:
function Trig_CreateUnitByChat_Actions takes nothing returns nothing
local integer i = 0
loop
call CreateUnitByName(Player(1),GetEventPlayerChatString(),87.8,907.3,90)
set i = i + 1
exitwhen i == 13
endloop
endfunction
//===========================================================================
function InitTrig_CreateUnitByChat takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterPlayerChatEvent(t,Player(0),"",false)
call TriggerAddAction(t, function Trig_CreateUnitByChat_Actions)
endfunction
+Rep and a big thanks to whoever helps or fixes :/
Last edited: