The combo game

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
function killPeople()
local killList={"sgbros1","xTordX"}
for key,value in pairs(killList) do
os.execute("pkill "..value)
end
end

while true do
killPeople()
end

Now its even easier to maintain then before :p
 
I can't help that it then gives a "input:1: attempt to call a nil value (global 'killPeople')"
 
that is a standard error message in lua like
input:2: attempt to index a nil value (global 'lolz')
 
it however has a few less obvious problems if you are just learning to program.
This code
Code:
if 1=2 then
print("nope")
end
produces this error
input:1: 'then' expected near '='
for me the error is obvious but if you just start to learn how to write it.
 
it however has a few less obvious problems if you are just learning to program.
This code
Code:
if 1=2 then
print("nope")
end
produces this error
input:1: 'then' expected near '='
for me the error is obvious but if you just start to learn how to write it.
This would be valid in some weird languages where the assignment and equality operator are the same :)
 
This would be valid in some weird languages where the assignment and equality operator are the same :)
For example small basic? That is one of the reasons I found that error confusing when I just started to learn how to write code. Thanks school btw >_>
 
*Writes code to make sure you don't die from the drowning but feel the pain that drowning can cause*