Alright so I am getting a weird syntax error in my code and I don't know why, I think it might be something with the map itself unless I am missing some small detail because this code was working before.
This line:
Prompts a syntax error.
JASS:
library CWonhit initializer init requires CWdummy
function E1 takes unit t returns nothing
call Cast(GetOwningPlayer(c), 'A000', t)
endfunction
function Hit takes unit t, unit c, integer i returns nothing
if i == 1 then
call E1(t, c)
endif
endfunction
function init takes nothing returns nothing
endfunction
endlibrary
JASS:
function E1 takes unit t returns nothing