Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. function eineFunktionMitIrgendeinRueckgabewert()
  2.    
  3.     globaleTabelle          = {}
  4.     local tabelle           = {}
  5.     local tabelleInTabelle  = {{}}
  6.     local wat               = {{{{{{{}{}}}{{}}{}}}}{}{}}
  7.    
  8.     tabelle["hallo ich bin ein index"] = "er ist ein index"
  9.     function eineBeispielFunktion()
  10.         print("Beispielcode");
  11.     end
  12.    
  13.     tabelle[eineBeispielFunktion] = "Hallo";  -- Hat den Index einer Funktion
  14.    
  15.    
  16.  
  17.     wat[1][1][1][1][1][1]   = "hallo"
  18.    
  19.     if(bedingung) then
  20.         if(bedingung or zweitebedingung or drittebedingung and viertebedingung or variable and xvariable > 5 or yvariable < 10 or ({}{{}} == true)) then
  21.        
  22.             while(bedinung) do
  23.                 - Bla
  24.             end
  25.            
  26.             for index, key in pairs(Tabelle) do
  27.                 -- Bla
  28.             end
  29.         end
  30.     end
  31.    
  32.    
  33.     local function eineFunktion()
  34.         local tabelle = {}
  35.         tabelle[function()
  36.             print("Blaaa")
  37.         end] = function(hallo, variabel1, variabel2)
  38.             print("LALALA")
  39.         end
  40.        
  41.         -- Aufruf:
  42.        
  43.         tabelle[function()
  44.             print("Blaaa")
  45.         end]("Hallo", variabel1, variabel2);
  46.    
  47.     end
  48.    
  49.     local steg          = 5 / 2
  50.     local PommesFrites  = 1337
  51.    
  52.    
  53.     return (math.random(5, 10)+(1000/25000)*(tonumber(wat[1][1][1][1][1][1]))/steg*PommesFrites);
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement