Posted 05 June 2013 - 02:58 PM
It took me a few hours to get this Programm written and it actualy "work" but i only can ask one time then the Programm ends and i canot bring it to "loop"
Script:
http://pastebin.com/fQCMjqFV
I deleted the answeres in this script so it is better to read.
i found the funtion key() on the CC Wiki. it is exactly what i want, but i dont understand how it works :P/>/>
When i have my fonction ask() inside of function key(), the program stops with the message ":22:attempt so call string".
But without that, after a key press, it cleares the first printed part but didnt clears the "answer" i got and then it stuck and i have to Terminate it.
i can't figure out, how to propper loop and can ask multiple questions without restarting the programm.
also, is there a better way to print the answers instead of alot of elseif ? i cant think of a way to make it a funtion. (the same for the printed questions on the Screen).
Script:
http://pastebin.com/fQCMjqFV
I deleted the answeres in this script so it is better to read.
i found the funtion key() on the CC Wiki. it is exactly what i want, but i dont understand how it works :P/>/>
When i have my fonction ask() inside of function key(), the program stops with the message ":22:attempt so call string".
But without that, after a key press, it cleares the first printed part but didnt clears the "answer" i got and then it stuck and i have to Terminate it.
i can't figure out, how to propper loop and can ask multiple questions without restarting the programm.
also, is there a better way to print the answers instead of alot of elseif ? i cant think of a way to make it a funtion. (the same for the printed questions on the Screen).