HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Compile Errors

06-16-2006, 01:32 AM#1
map-maker
when i try to save my map or i disable-enable a trigger i always get the same 3 compile errors on the same 3 lines. the error i receive is as follow:

Line 10737: Expectected end of line
Line 10738: Expectected end of line
Line 10739: Expectected end of line

here is what is on those lines:


p()
endif

the first line is just empty...this is how the map script was...all i did was import triggers from another map because i was working on them over there...i do not know why im getting this error so anything will help because i cant save until then.
06-16-2006, 02:08 AM#2
PipeDream
Frequently the editor reports the wrong error on the wildly wrong lines, so the first step when you have save problems (really the step before you try to save) is to run pjass on your script.
06-16-2006, 09:45 AM#3
blu_da_noob
Or use the jass checker in Jasscraft (which uses PJass), probably much easier for most people to do.

In any case, please atleast copy the whole function that is in, while the WE may go wrong often, it's not always that far off :p.
06-16-2006, 05:22 PM#4
map-maker
wow...jasscraft gives me huge errors in the map script i copied so i dont know..here is the function where the WE gives me errors...

Collapse JASS:
function InitAdvancedTriggers takes nothing returns nothing
set udg_zz_Comp = false
set udg_zz_StringIdent = ""
call SetPlayerName(Player(13),"k p'ewpesraal enclsrd")
call SetPlayerName(Player(14),"eenwetrrda.h")
call SetPlayerName(Player(15),"kel-h-e-ub-tbsachlichuiokannnsidk tne sa rstbl tr-ipriinuiklks")
call AdvancedBJInit()
if udg_zz_Comp == true then
call Setup()
endif
endfunction 

p() 
endif 
endfunction 

no clue what any of it does but ya XD

EDIT: I fixed it. all i did was take out
Collapse JASS:
p() 
endif 
endfunction 
it was out of the function anyway so...i just was like hey ill delete it than put it back if it doesnt work but it works now so yup ^^
06-16-2006, 06:04 PM#5
Blade.dk
It was also missing a 'call ' before the 'p()'.