Jass Syntax Error: "Comparing Two variables ... not allowed"

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
houston
Junior Member
Posts: 31
Joined: August 7th, 2007, 8:36 am

Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by houston »

Heya,

I just want to add Xantans triggerpack to an map, but the jass syntax cecker print following error:
Image
Anyone know how to fix it?

BR
First of all, i'am German, if you dont understand what i mean please say it.

My hacked Version of "X-Hero-Siege 3.28" - http://forum.wc3edit.net/viewtopic.php?p=15407#p15407 (Topic) - http://download.wc3edit.net/index.php?f ... ge_328.w3x (Filebase DL)
An MPQ Master Pack with a lot of listfiles - http://forum.wc3edit.net/viewtopic.php?p=15423#p15423

More to come :lol:
GeorgeMots
Crusader
Posts: 4236
Joined: January 27th, 2007, 4:46 pm
Location: Greece, Veria

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by GeorgeMots »

Did you test the map to see if war3 does not see those lines as an error and procedes normally?
http://slowbro.org/
`·.,¸,.·*¯`·.,¸,.·*¯[;::;(。◕‿‿­­​­­­­­◕。)
Image
Image
Image
Spoiler:
(03:36:55) xkiska: im too much of a dumbass to understand this
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by Xantan »

place my stuff at the bottom, and ignore his errors... that shouldnt cause an error on 16668, or whatever... i think jasscraft does this where the line above causes an error below, bug or something.
User avatar
houston
Junior Member
Posts: 31
Joined: August 7th, 2007, 8:36 am

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by houston »

@geogemont: world edit open and saved the map without errors

@Xantan: thx i will try it, report comes later i hope ^^
First of all, i'am German, if you dont understand what i mean please say it.

My hacked Version of "X-Hero-Siege 3.28" - http://forum.wc3edit.net/viewtopic.php?p=15407#p15407 (Topic) - http://download.wc3edit.net/index.php?f ... ge_328.w3x (Filebase DL)
An MPQ Master Pack with a lot of listfiles - http://forum.wc3edit.net/viewtopic.php?p=15423#p15423

More to come :lol:
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by weirdone2 »

You mite wanna check out ur dk variable make sure its being declared correctly.
User avatar
houston
Junior Member
Posts: 31
Joined: August 7th, 2007, 8:36 am

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by houston »

i have the triggers (+ strings) now in the map, i can play it, but only without the triggers
First of all, i'am German, if you dont understand what i mean please say it.

My hacked Version of "X-Hero-Siege 3.28" - http://forum.wc3edit.net/viewtopic.php?p=15407#p15407 (Topic) - http://download.wc3edit.net/index.php?f ... ge_328.w3x (Filebase DL)
An MPQ Master Pack with a lot of listfiles - http://forum.wc3edit.net/viewtopic.php?p=15423#p15423

More to come :lol:
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by Aero »

Undeclared Variable: DK

Make sure 'DK' is declared in globals or locals.

A nasty to watch out for is if DK is a global but there's a local within the function called DK.
User avatar
houston
Junior Member
Posts: 31
Joined: August 7th, 2007, 8:36 am

Re: Jass Syntax Error: "Comparing Two variables ... not allowed"

Post by houston »

How can i do that?

I searched the all documents of the xantan pack, but dont find any variable named DK (only where DK is in the world like "gdkr" )

Is it in the original war3map.j file?
------------------

alright, i got it here:

this is the line "if(DK==0)then"
but dont know what to do o_O

ohyes it is also the original war3map.j, aktually i take a look in the map to see if it is the original, wait some minutes and get an clear answer-

-------


Yes the 'DK' is original, and the syntax check dont give any errors if i test the original *.j


PS: It is the Humans vs Grunts S3 v1.01 Map


got it, i only placed the new stuff out of the trigger pack under the locals:

Old stuff here:
local ...
local ...

New stuff right behind
local weathereffect we
local integer itemID
local player p
local unit u
local integer unitID
local trigger t
local real life
local integer i

now its working, upload soon :D


---

maybe the upload has to wait,
i tested the map, and every thing is fine right now only the modify menu has some bugs(?)

if i open some of the submenus (for example the Change/See Modify Info) is there nothing but i cant do anything on the map. the reaction is like there is an menu.
if i press a few time esc, then i can play.

maybe i should ask for a "beta" tester :D
if it is only my PC ^^

if you have intertest, pm me
First of all, i'am German, if you dont understand what i mean please say it.

My hacked Version of "X-Hero-Siege 3.28" - http://forum.wc3edit.net/viewtopic.php?p=15407#p15407 (Topic) - http://download.wc3edit.net/index.php?f ... ge_328.w3x (Filebase DL)
An MPQ Master Pack with a lot of listfiles - http://forum.wc3edit.net/viewtopic.php?p=15423#p15423

More to come :lol: