Jump to content

createWater


Martyz

Recommended Posts

Posted

Hello, I've some very strange problem with createWater. This line doesn't create water:

createWater(635, -229, 12, 613, -229, 12, 635, -294, 12, 613, -294, 12) 

Code is 100% ok and it doesn't show any errors, but this createWater function returns false. When I tried to change coordinates to ones from wiki(createWater) example, it worked (returns water element). I've been checking every symbol i wrote in this line for ten minutes, but didn't find any faults. Is this function bugged or maybe I use this function wrong?

Btw, I've tried client-side and server-side, but it returns the same problem.

Posted

Coordinates have to be put in the correct order. x1 and x3 should be less than x2 and x4, y1 and y2 should be less than y3 and y4. So the code shoud look like this:

createWater(613, -294, 12, 635, -294, 12, 613, -229, 12, 635, -229, 12) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...