Posted 30 December 2012 - 08:51 AM
This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Rhyser9's Misc. Programs
Started by rhyser9, 30 December 2012 - 07:51 AMPosted 30 December 2012 - 09:06 AM
Can you also include a screenshots spoiler for each of the programs? If so, awesome :)/>
I like previewing what I'm going to download before I download it. I'm sure others do too. XD
I like previewing what I'm going to download before I download it. I'm sure others do too. XD
Posted 30 December 2012 - 09:20 AM
I was just doing it :P/> Sorry, probably should of had it ready WHEN I posted XDCan you also include a screenshots spoiler for each of the programs? If so, awesome :)/>
I like previewing what I'm going to download before I download it. I'm sure others do too. XD
Posted 30 December 2012 - 11:06 AM
Use the tArgs table(I think it's spelt like that). To use it say:
local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
Posted 30 December 2012 - 11:21 AM
That won't work, tArgs is a table so you have to use it like this:Use the tArgs table(I think it's spelt like that). To use it say:
local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
if tArgs[1] == "something" then
The number in the brackets is the number of the argument you want to use.Posted 30 December 2012 - 12:12 PM
That won't work, tArgs is a table so you have to use it like this:Use the tArgs table(I think it's spelt like that). To use it say:
local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
endThe number in the brackets is the number of the argument you want to use.if tArgs[1] == "something" then
I meant how do I retrieve the input? Or is that what tArgs is? A table of all the additional arguments that got inputed when the program was run? Actually, that makes sense now… Thanks!
Posted 30 December 2012 - 12:48 PM
That won't work, tArgs is a table so you have to use it like this:Use the tArgs table(I think it's spelt like that). To use it say:
local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
endThe number in the brackets is the number of the argument you want to use.if tArgs[1] == "something" then
Lol, sorry I was too lazy to double-check. was still coding my new program. XP