I had a trouble with my save script
1
LUA ERROR: sys/lua/autorun/Unknown.lua:890: attempt to concatenate field '?' (a boolean value)
The lua error in:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("leave","save_") addhook("die","save_") function save_(id) 	if (player(id,"usgn")>0) then 		io.output(io.open("sys/lua/autorun/data/"..player(id,"usgn")..".txt","w+")) 		io.write(level[id].." "..exp[id].." "..coin[id].." "..ticket[id].." "..fastreload[id].." "..premium[id]) 		io.close() 	end end
which exactly in:
io.write(level[id].." "..exp[id].." "..coin[id].." "..ticket[id].." "..fastreload[id].." "..premium[id])
It just appeared when I tried to change 1 to "true" and 0 to "false"
example:
1
2
2
if fastreload[id]==false then fastreload[id]=true
I hope somebody can fix it Thanks