Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO Final Frontier[EO3.0] Button not working?


Tic Tac 2
 Share

Recommended Posts

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

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
 Share

×
×
  • Create New...