No, you don't really need to use labels.
Cause you just do like, if whatever = true then
So, you don't really need any labels or goto's, but either way I don't know how.
Sorry :(
Printable View
No, you don't really need to use labels.
Cause you just do like, if whatever = true then
So, you don't really need any labels or goto's, but either way I don't know how.
Sorry :(
damn, on my opinion that's the most helpful part of coding....Zitat:
Zitat von Virtue
okay, im having trouble with this peice of code. Now, i want to do, is if usb mode is active, it shows a little picture, here is what i did, and it doesnt work
if System.usbDiskModeActivat e() true then screen.blit(460, 260, usb, false)
else
end
That's because System.usbDiskModeActivat e() turn on the usb, it doesn't return a value. You also don't need else there. Also leave out the false, unless you don't want your picture to have transparency at the parts it had transparency in the .png.Zitat:
Zitat von Master Inuyasha
Here, try this:
ignore the strange spaces in the middle of the usbDiskModeActivate and usbDiskModeDeactivate, it's just something the forum does.Code:usbStatus;
function usbON()
System.usbDiskModeActivate()
usbStatus = true
end
function usbOFF()
System.usbDiskModeDeactivate()
usbStatus = false
end
if UsbStatus then
screen.blit(460, 260, usb)
end
Labels are pointless since there are loops and functions.Zitat:
Zitat von st.jimmy
Exactly what I said ^ :)
well then how do i make a loop?
while true do
ohkay?Zitat:
Zitat von Virtue
i just dont see how that will make the program loop over and over again.
well i have a problem where the 'end' code is executed before i can press a button.... i know that you have seen the script.
wats the resizer function