Jump to content

water problem


golanu21

Recommended Posts

function thaResourceStarting( ) 
    water = createWater ( 1083.02283, -1222.99854, 15.82031, 1112.45837, -1223.00110, 15.82715, 1111.60071, -1252.70752, 15.82031, 1083.02148, -1252.92126, 15.82715, true ) 
    setWaterLevel ( water, 20 ) 
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), thaResourceStarting) 

setWaterLevel [Expected number at argument 1, got nill]

Link to comment
change
setWaterLevel ( water, 20 ) 

to

setWaterLevel( 20, water ) 

You, go immediately learn to read wiki.

bool setWaterLevel ( [float x, float y, float z,] float level ) 
bool setWaterLevel ( [water theWater,] float level ) 
bool setWaterLevel ( float level [, bool includeWaterFeatures = true, bool includeWaterElements = true ] ) 

Link to comment

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...