There is a code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
elo = {} elo_test_try = {} pl = {} for id=1,32 do pl[id]={} elo_test_try[id]=5 elo[id]=40 end addhook("join","_join") function _join(id) if player(id,"usgn")>0 then local dir="sys/lua/accounts/%s.txt" local file = io.open(dir:format(player(id,"usgn"), "r")) if file then local string1, string2, string3, string4, string5 = file:read("*n","*n","*n","*n","*n") elo[id] = string2 elo_test_try[id] = string3 pl[id].tag = string4 file:close() end end
problems:
1) this code is NOT loading string1. so any variable that =string1 will be nil or *n (only elo[id] will be *n but other vars will be nil).
2) this code is loading only 1 variable that first than others.