golanu21 Posted July 15, 2014 Share Posted July 15, 2014 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
toxicsmoke11 Posted July 15, 2014 Share Posted July 15, 2014 change setWaterLevel ( water, 20 ) to setWaterLevel( 20, water ) Link to comment
golanu21 Posted July 15, 2014 Author Share Posted July 15, 2014 change setWaterLevel ( water, 20 ) to setWaterLevel( 20, water ) it's not working... Link to comment
Et-win Posted July 15, 2014 Share Posted July 15, 2014 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
golanu21 Posted July 15, 2014 Author Share Posted July 15, 2014 the function from wiky.mtasa.com... it's working.. nothing in debug.. 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