Martyz Posted December 5, 2013 Share Posted December 5, 2013 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. Link to comment
DiSaMe Posted December 5, 2013 Share Posted December 5, 2013 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) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now