text file contains this:
16283 1000
123 456
My usgn is the first number, and the script checks if my usgn is in the list. if it is, it sets hud as I want. It correctly detects player 1 info and sets HUD. Player 2 also gets correct info, but after it displays msg('id: '..id..'info: '..info[1]) nothing happens!! Why?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function test(id) msg('hello!') 	info={} 	file = io.open("sys/standings.txt", "r") 		for line in io.lines("sys/standings.txt")do 		info = file:read("*l") 		info = parseline(info) 			if (player(id,"usgn")==info[1])then 			msg('id: '..id..'info: '..info[1]) 			parse('hudtxt2 '..id..' 1 "©255255255hello"') 			end 		end 	file:close() end function parseline(line) local index=1 local var={} 	for i in string.gmatch(line, "%S+") do 	var[index]=tonumber(i) 	index=index+1 	end return var end