| 06-16-2006, 01:32 AM | #1 |
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 |
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 |
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 |
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... 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 JASS:p() endif endfunction |
| 06-16-2006, 06:04 PM | #5 |
It was also missing a 'call ' before the 'p()'. |
