berry7009 Posted February 11, 2013 Posted February 11, 2013 (edited) function SkyGradient(SkyGradient) setSkyGradientsetSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky",SkyGradient) what's wrong !? its so simple ! i get that error: attempt to call global setSkygradientsetSkyGradient' also how to change water color ? can you make me an example please for both Sky and water and if you can make one sky with RGB ? UPDATE : i fixed the setSky function Skycolor(setSkyGradient) setSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky", Skycolor) now i get another error: attempt to call setskygradient Edited February 11, 2013 by Guest
Castillo Posted February 11, 2013 Posted February 11, 2013 You put the function name twice. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
HunT Posted February 11, 2013 Posted February 11, 2013 setSkyGradientsetSkyGradient???? Maybe setSkyGradient @Huntone_
berry7009 Posted February 11, 2013 Author Posted February 11, 2013 i am new to this so more explanation please if you can add examples it will be nice
DNL291 Posted February 11, 2013 Posted February 11, 2013 The function name is setSkyGradient. function SkyGradient() setSkyGradient( 200, 0, 100, 150, 0, 70 ) end addCommandHandler("sky",SkyGradient) Please do not PM me with scripting related question nor support, use the forums instead.
berry7009 Posted February 11, 2013 Author Posted February 11, 2013 so put nothing between ()? also one for water please
DNL291 Posted February 11, 2013 Posted February 11, 2013 If you mean change the water color, use setWaterColor. Please do not PM me with scripting related question nor support, use the forums instead.
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