"Bad types for binary operator"?

Sim

Forum Administrator
Staff member
Reaction score
534
When did you get that error message?
 

SFilip

Gone but not forgotten
Reaction score
634
Binary operators are something (to my knowledge) unavailable in Jass so that error is ridiculous at best.
Can you post the whole code?
 

elmstfreddie

The Finglonger
Reaction score
203
To me it looks like he is making a save/load code.
If you have JASSCraft though, sometimes the line it says the error is on is wrong (like if it says line 65 I always check 64 since it's off =/).
As Daxtreme said though, whole code please.
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
Binary operators are something (to my knowledge) unavailable in Jass so that error is ridiculous at best.
Can you post the whole code?

Sure. This is a upcoming system of mine. It is called VoteKick. Instead of a Admin, a special name or player red only can kick, this system should help everyone. This system is not even 25% done, though it only needs the count system. I have not optimized it yet so it is probably a messy for anyone who don't know JASS. Anyway I have comment the variables of the lines please ask if you don't know what the line does.

To test it type -votekick into the chat or change everything inside of ""
JASS:
return "-votekick"
to whatever you want.

Edit: Source code removed
 

Tom Jones

N/A
Reaction score
437
You messed up with the parentheses. I changed it to this, and it works fine:
 

martix

There is no spoon
Reaction score
49
Yup, one brace before the "-1". There's a nice program that has this function - match brace - very useful for this. :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top