you would be adding like, 4 lines of code at most, 10 times...Zitat:
Zitat von Access_Denied
Printable View
you would be adding like, 4 lines of code at most, 10 times...Zitat:
Zitat von Access_Denied
No, I would have to reconfigure 2 menus and change graphics again, and I've already had to do it twice, so I'm tired of doing it.
I was gonna reccomend system.quit
:( im trying to add a timer in my script, but i put this in :
but i getZitat:
counter = Timer.new()
counter:start()
if counter > 1000 then
screen:print(12,0,"> 1", black)
end
wtf?! ive used timers before but this has never happened :confused:Zitat:
error: fight.lua:16: attempt to compare number with userdata
sorry, i cant help you, i've never used a timer in anything, cos i do games not apps, its not really used in apps.
But i will be using it in luamainframe2
@Noobkiller, it's because you are comparing the timer itself. It needs to be:
Code:if counter:time() > 1000 then
--do stuff here
end
if counter:time() > 1000 then
already bin answered :p
-= Double Post =-
Code:-- default options]]
options = { navspeed = 1, autoscroll = "on", netlib = "off", wavlib = "off", bmplib = "off", diskmode = "off", start2quit="on", lowbattpercent = 3, overclock = "off", scetrick = "yes" }
-- possible options for menu
possibleOptions = {
navspeed = {
displayName = "NavSpeed",
values = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } },
autoscroll = {
displayName = "Auto-Scroll",
values = { "on", "off" } },
netlib = {
displayName = "Load Netlib",
values = { "on", "off" } }
wavlib = {
displayName = "Load Wavlib",
values = { "on", "off" } }
bmplib = {
displayName = "Load bmplib",
values = { "on", "off" } }
diskmode = {
displayName = "USB at start",
values = { "on", "off" } }
start2quit = {
displayName = "Start restarts luaplayer",
values = { "on", "off" } }
lowbattpercent = {
displayName = "Low battery %",
values = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } }
overclock = {
displayName = "Overclock PSP?",
values = { "off", "222", "266", "333" } }
scetrick = {
displayName = "Using __SCE__ trick?",
values = { "yes", "no" } }
}
why isn't this working?
-= Double Post =-
anybody?
whats you error glynnder?
sys.lua:24: '}' expected to close '{' at line 11 near 'bmplib'
line 11 is bmplib = {
displayName = "Load bmplib",
values = { "on", "off" } }
but even when i quote that so line 11 is diskmode or whatever, it still doesnt work