-snip-
")" expected :2:
Started by ETHANATOR360, Sep 16 2012 11:27 PM
4 replies to this topic
#1
Posted 16 September 2012 - 11:27 PM
#2
Posted 16 September 2012 - 11:46 PM
When you write a line using a quote, the interpreter will automatically look for the next quote to end the string, and anything in between those two quotes is textual data. To prevent this, you'll need to use different means of writing quotes within quotes.
You could try '' or [[ ]] to achieve what you're looking to do.
Here is a solution using '':
Here is a solution using [[ ]]:
Hope I helped!
/>
You could try '' or [[ ]] to achieve what you're looking to do.
Here is a solution using '':
startup.writeLine ('shell.run("virus")')
Here is a solution using [[ ]]:
startup.writeLine ([[shell.run("virus")]])
Hope I helped!
#3
Posted 16 September 2012 - 11:47 PM
You have to escape quotes inside a string (or use single quotes, or multiline strings), otherwise it will think the string ends.
startup.writeLine("shell.run("virus")")
-- or
startup.writeLine("shell.run('virus')")
-- or
startup.writeLine([[shell.run("virus")]])
#4
Posted 17 September 2012 - 02:15 AM
MysticT, on 16 September 2012 - 11:47 PM, said:
You have to escape quotes inside a string (or use single quotes, or multiline strings), otherwise it will think the string ends.
startup.writeLine("shell.run("virus")")
-- or
startup.writeLine("shell.run('virus')")
-- or
startup.writeLine([[shell.run("virus")]])
startup.writeLine('shell.run("virus")')
#5
Posted 17 September 2012 - 03:02 AM
Please do not post malicious code on the forums.
You've been here long enough to follow forum rules and guidelines.
Thread Locked.
You've been here long enough to follow forum rules and guidelines.
Thread Locked.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked









