295 posts
Posted 02 August 2013 - 05:14 PM
Hi, I have made a script installer that grabs multiple scrips from pastebin BUT it is ment to ask what ones I want with a yes/anything else answer thing but that is not working.
It works but does not wait for a responce before It installs it.
It can be found at
http://pastebin.com/68JHikjSSorry for spelling I am 13 and stayed up all night trying to get it to funtion but >:(/>
All help is appreciated
52 posts
Posted 02 August 2013 - 05:59 PM
Hi, I have made a script installer that grabs multiple scrips from pastebin BUT it is ment to ask what ones I want with a yes/anything else answer thing but that is not working.
It works but does not wait for a responce before It installs it.
It can be found at
http://pastebin.com/68JHikjSSorry for spelling I am 13 and stayed up all night trying to get it to funtion but > :(/>
All help is appreciated
You have to set input = read() then it will get what is type by the user.
1688 posts
Location
'MURICA
Posted 02 August 2013 - 06:30 PM
This line:
if input == yes then
and subsequent lines, put quotes around yes.
if input == "yes" then
Without quotes, it checks to see if the variable is equal to the
variable yes, and not the
value of "yes".
295 posts
Posted 02 August 2013 - 07:02 PM
This line:
if input == yes then
and subsequent lines, put quotes around yes.
if input == "yes" then
Without quotes, it checks to see if the variable is equal to the
variable yes, and not the
value of "yes".
I realised that just then,
Thanks