Tic Tac 2 Posted February 6, 2015 Author Share Posted February 6, 2015 What's wrong with my Code? My friends button doesn't open the GUI. All the other buttons work, though.Would very much appreciate help. If needed, i can pay you five bucks on paypal if you fix this for me.Got skype and teamviewer.``` I = 65 x = GUIWindow(GUI_MENU).x + Buttons(I).x y = GUIWindow(GUI_MENU).y + Buttons(I).y ' check if we're on the button If (GlobalX >= x And GlobalX <= x + Buttons(I).Width) And (GlobalY >= y And GlobalY <= y + Buttons(I).Height) Then If Buttons(I).state = 2 Then ' do stuffs OpenGuiWindow 10 ' play sound PlaySound Sound_ButtonClick, -1, -1 End If End If```![](http://i.snag.gy/A3WQJ.jpg) Link to comment Share on other sites More sharing options...
Tic Tac 2 Posted February 7, 2015 Author Share Posted February 7, 2015 FIXED. forgot to add code to mousedown. lol Link to comment Share on other sites More sharing options...
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