hey guys im having a problem with a chunk of my code, it doesnt throw an error though.
basically i am making an app store and i have made buttons, the buttons work on the rest of the OS but on this part they dont, i click them and nothing happens
the code is in the pastebin bellow
https://pastebin.com/2i6QbhxH
or
pastebin get 2i6QbhxH
thanks in advance
4 replies to this topic
#1
Posted 26 July 2017 - 11:14 AM
#2
Posted 26 July 2017 - 11:57 AM
Are you using an advanced computer / monitor? "mouse_click" only works on advanced.
If you're only planning on listening to the "mouse_click" event, use os.pullEvent("mouse_click") so that you don't have to manually filter events.
The given snippet of code won't compile because there are 2 "end" statements too many.
If you're only planning on listening to the "mouse_click" event, use os.pullEvent("mouse_click") so that you don't have to manually filter events.
The given snippet of code won't compile because there are 2 "end" statements too many.
#3
Posted 26 July 2017 - 12:19 PM
hi thanks for answering so fast.
i am using an advanced computer but the amount of "end" statements are fine and if i add more or take away more i get an error.
EDIT : The buttons are formatted the same throughout the whole program and they work fine but this doesn't.
i am using an advanced computer but the amount of "end" statements are fine and if i add more or take away more i get an error.
EDIT : The buttons are formatted the same throughout the whole program and they work fine but this doesn't.
Edited by joshgreat, 26 July 2017 - 12:21 PM.
#4
Posted 26 July 2017 - 01:37 PM
This sort of thing:
... should be along the lines of this sort of thing:
The reason you need your excess "end"s is because you're using "else if" where you could be using "elseif".
cx < choice1:len()
... should be along the lines of this sort of thing:
cx < x1 + choice1:len()
The reason you need your excess "end"s is because you're using "else if" where you could be using "elseif".
#5
Posted 27 July 2017 - 02:31 PM
Bomb Bloke, on 26 July 2017 - 01:37 PM, said:
This sort of thing:
... should be along the lines of this sort of thing:
The reason you need your excess "end"s is because you're using "else if" where you could be using "elseif".
cx < choice1:len()
... should be along the lines of this sort of thing:
cx < x1 + choice1:len()
The reason you need your excess "end"s is because you're using "else if" where you could be using "elseif".
EDIT: Nvm i was modifying the wrong thing sorry about that, but nevertheless thank you so much for the help
Edited by joshgreat, 27 July 2017 - 02:33 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











