I have written this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local OBS = { }
local Q = 20
local W = 1
InsertMultipleVars = function (var, ...)
for k, v in pairs({...}) do
v = var[k]
end
end
InsertMultipleVars(OBS, Q, W)
print(OBS[Q]) -- Returns nil
But it's not working
edited 1×, last 04.12.19 08:12:20 pm
Insert Multiple Vars into a table
1 
Offline
The Superman