KINGx - Das inoffizielle PlayStation Forum & News Portal

Normale Version: Kleines Lua Problem
Sie sehen gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
hi leute

ich habe ein problem das ich auch irgenwie nicht verstehen kann

Code:
rot = Color.new(255,0,0)
cpu = System.getCpuSpeed()
    
    while true do
    screen:print(45,50,"X=Exit to the XMB",rot)
    screen:print(45,65,"L=Make the USB Enabled",rot)
    screen:print(45,80,"R=Make the USB Disabled",rot)
    screen:print(45,95,"Down=Sets the cpu to 133Mhz",rot)
    screen:print(45,110,"Up=Set the Cpu is 333Mhz",rot)
    screen:print(45,300,"CPU:"..cpu,rot)
    screen.flip()
    screen.waitVblankStart()
        
        pad=Controls.read()
        if pad:cross() then
        System.Quit()
         end
        if pad:l() then
        System.usbDiskModeActivate()
         end
        if pad:r() then
        System.usbDiskModeDeactivate()
         end
        if pad:Up() then
        System.setHigh()
         end
        if pad:Down() then
        System.setLow()
         end
    end


da steht wenn ich es starte

Code:
Error: SCRIPT.LUA:26: loop in gettable


was bedeutet das und was mache ich falsch??? Noidea

Ich glaub mit 26 ist die Zeil gemeint.

Italia-boy :
Ich glaub mit 26 ist die Zeil gemeint.


Ist sie auch :/
Ich hab diesen Fehler schon oft gehabt..und hab ihn auch oft gefixt,doch bei mir lag es glub ich dran das ich paar mal () vergessen hatte.............mir fehlt nix konkretes ein sry.........................

@Italia Boy Ziemlich maue Antwort, dafür dass du dich für einen guten Dev hältst :facepalm:

Sorry 4 OT


Keine Ahnung von Lua,aber laut Google ist der Code richtig,frag mal Neutro,der ist der "Lua-Profi" Wink

mfg
Niemand hat gesagt das ich mich für einen so tollen Dev halte. Ausserdem hab ich schon lange nix mehr gemacht da manche sagen das ist nix für mich.-->

@Emink: Passendes bild zum Thema thumb
Referenz-URLs