The combo game

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
while true do
while true do
os.execute("pkill sgbors1")
os.execute("pkill xTordX")
end
end

because the more loops the better :p
 

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
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
 

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
I can't help that it then gives a "input:1: attempt to call a nil value (global 'killPeople')"
 

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
that is a standard error message in lua like
input:2: attempt to index a nil value (global 'lolz')
 

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
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.
 

Pyure

Not Totally Useless
Aug 14, 2013
8,347
7,214
383
Waterloo, Ontario
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 :)
 

lenscas

Over-Achiever
Jul 31, 2013
2,031
1,807
248
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 >_>