![]() |
|
#1
|
|||
|
|||
|
Code:
error: script.lua:16: (eof) expected near 'end' Heres the code: Code:
--test App --Author: Originalfragster --*Variables* display = "lolz u suxorz" red = Color.new(255,0,0) pad = Controls.read() --*Main Loop* screen:clear() if pad:up() then screen:print(100,100,display,red) end screen.waitVblankStart() screen.flip() end Any help is greatly appreciated. |
|
#2
|
|||
|
|||
|
Why is that last end there? I don't see anything to end, other than the if statement, but you closed that already.
__________________
Member number: 3 Meat lover? Watch: http://www.chooseveg.com/animal-cruelty.asp |
|
#3
|
|||
|
|||
|
That wont work because you dont have a loop
-- Variables while true do -- Your code -- The bottom end in the script. That might help |
|
#4
|
|||
|
|||
|
lol - its so simple now I see it like that :o
thanks romero and lordcthulu |
|
#5
|
||||
|
||||
|
good to see someone getting into LUA coding. if you have any more problems i would be glad to help
__________________
The PSP Programming and Development Mega Thread VDrum downloaded over 10000 times! PSN: Xsjado7 |
|
#6
|
|||
|
|||
|
your code is messed up try putting this code in i edited it for you
you dident have a loop in your program display= what ever you had is not needed it will not work just use screen:print its much easyer Code:
--test App --Author: Originalfragster red = Color.new(255,0,0) while true do pad = Controls.read() screen:clear() if pad:cross() then screen:print (50,110 , "lolz u suxorz" ,red) screen.waitVblankStart() end screen.waitVblankStart() screen.flip() end
__________________
![]() Email me your lua scripts ill fix them or help you fix them and Email you back on what you wanted :D |
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|