im using this code to ask a user for a global variable, this works fine in another code that i saw on the internet, but it seems that i dont get it. Unfortunalty i cannot provide you with an error, cause at the place where i am at this moment, i cannot run Java :/
testvar = AskForVar("Write something") function AskForVar(help) UserInterface() print("Die Variable \""..varname.."\" wird erstellt.") write("Bitte geben Sie den Startwert ein (Hilfe: "..help.."):") return varname = read() end print(testvar)
Edit: damn, tab's havent been copied to [ CODE ] tag
Edited by LuckyLuke, 23 July 2015 - 11:12 AM.