HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Desactive Trigger due "Jass error"?

06-08-2008, 01:54 AM#1
C0mm4nd3r
Hi, i made a post some days ago cuz got problems with a chat system but i got no response.. so well, i just started to make mine owns :) ...

Well the system i made is like TC's chat.. it creates a multiboard and displays the name and the text in it.... By now it wont have smilies but its np for my.

The problem is that when i save the map i get an error, and i am sure its all correct... i made it in GUI not in JASS but it pops up a window telling my that i have JASS errors in the trigger " Chat " . ( well, becouse as everybody does know WE takes the triggers and creates a jass.j file and puts it in the map, at that point is where i get the error)

As i said the error tells my that i cant save the map with the trigger " Chat " active becouse it haves erros. It tells me that at line # and # ( i dont remember whitch are xD ) i have ( the same error on both sides ) the error " Expecting a Function Name " ( or something like that, i have spanish version " Se esperaba un nombre de funcion " is what it exactly tells me >.< )

Also on the Jass box these are the "wrong" codes that appear...
Collapse JASS:
call createmultiboardforplayer (4,8 "trigstr_014" getenumplayer() )


//and the other line witch has " wirng " code...


call multiboarddisplayforplayer(true, getlastcreatedmultiboard(),getenumplayer() )

i have some files in " UI " folder in wc3 folder with makes abble to show and create multiboards only for X player/s also other files for hide the chat .

does anybody know how to fix it?

i tryed ( in gui )

to make it like

Trigger:
actions:
pick every player in allyes of player 3 teal
loop
create/show multiboard for picked player
//also----------------
actions:
create/show multiboard for players in player group allyes of player 3 teal
//also i still get the same error if i use only------------------
actions:
create/show multiboard for player 3 teal



TY4ALL

GGL&HF! CYA!
06-08-2008, 09:39 PM#2
Themerion
Well...

Isn't it supposed to be GetEnumPlayer() instead of getenumplayer()? And same for multiboards? GetLastCreatedMultiboard(). The custom functions I'm not sure about, but perhaps they ought to be dealt with the same way.

I can't think of a good way to solve it though. I have no idea how to modify an UI-file. Easiest way is probably to convert the trigger into JASS/Custom Script and modify it yourself. You can always backup the GUI trigger and test with JASS, just to be able to see if this was the problem.