i write some lua scripts but in two scripts i have problems :
the first script :
Code: Select all
black = Color.new(0,0,0)
green = Color.new(0,255,0)
while true do
screen:clear(black)
pad = Controls.read()
screen:print(1,1,"(rip",green)
screen:print(1,10,"(triangle to go back",green)
if pad:cross() then
UMD.ripISO("ms0:/ISO/Game.ISO")
System.Quit()
end
if pad:triangle() then
require "script"
end
screen.flip()
screen.waitVblankStart()
end
but it dumps it and it don't shows the text...
and the second error :
i have written a script.lua that must play a mp3. but it always came a error :
my script :
Code: Select all
black = Color.new(0,0,0)
green = Color.new(0,255,0)
while true do
screen:clear(black)
pad = Controls.read()
screen:print(1,1,"(X drücken zum Rippen",green)
screen:print(1,10,"(Dreieck um ins Menu zurück zu kehren",green)
if pad:cross() then
UMD.ripISO("ms0:/ISO/Spiel.ISO")
System.Quit()
end
if pad:triangle() then
require "script"
end
screen.flip()
screen.waitVblankStart()
end
script.lua 32 wrong number of agruments..
the sound.mp3 is in the dir in that the script.lua ?
and i search a command with that i can check the wlan access points in my home etc.
I use LUA Player HM v7.
Sry for my bad english i'm a german..
and i think this is the best forum for lua dev.
thx
mfg.flo