Sande Posted July 24, 2013 Share Posted July 24, 2013 Hey, i try to make this freeroam only, but the error message bugs. debugscript says: end expected to close if online 6. addCommandHandler("water", function ( command ) local team = getPlayerTeam (localPlayer) if getTeamName (team) == "Freeroam" then if not isWorldSpecialPropertyEnabled( "hovercars" ) then setWorldSpecialPropertyEnabled( "hovercars", true ) outputChatBox("Water drive: on ", 255, 255, 0 ) end else setWorldSpecialPropertyEnabled( "hovercars", false ) outputChatBox("Water drive: off", 255, 0, 0 ) else outputChatBox("Sinun täytyy olla freeroam tiimissä käyttääksesi lentotoimintoa", 255,0,0) end end end ) Link to comment
TAPL Posted July 24, 2013 Share Posted July 24, 2013 addCommandHandler("water", function() local team = getPlayerTeam(localPlayer) if getTeamName(team) == "Freeroam" then if not isWorldSpecialPropertyEnabled("hovercars") then setWorldSpecialPropertyEnabled("hovercars", true) outputChatBox("Water drive: on ", 255, 255, 0) else setWorldSpecialPropertyEnabled("hovercars", false) outputChatBox("Water drive: off", 255, 0, 0) end else outputChatBox("Sinun t?ytyy olla freeroam tiimiss? k?ytt??ksesi lentotoimintoa", 255, 0, 0) end end) Link to comment
Sande Posted July 24, 2013 Author Share Posted July 24, 2013 end expected (to close if at line 7 near else Link to comment
TAPL Posted July 24, 2013 Share Posted July 24, 2013 end expected (to close if at line 7 near else Seems to me you copied it before i edit my post, copy the code again. Link to comment
Sande Posted July 24, 2013 Author Share Posted July 24, 2013 end expected (to close if at line 7 near else Seems to me you copied it before i edit my post, copy the code again. Working, thank you so much 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