- 34
- 0
Как устранить? attempt to index local 'inidata' (a number value)
Код:
function updatesettings()
local inidata = iniread('moonloader/config/autocop/config.ini');
if inidata.main.nickname then my_nickname = inidata.main.nickname else my_nickname = 'null' end
if inidata.main.rang then my_rang = inidata.main.rang else my_rang = 'null' end
if inidata.main.frak then my_fraktion = inidata.main.frak else my_fraktion = 'null' end
if inidata.main.phone then my_phone = inidata.main.phone else my_phone = 'null' end
if inidata.main.rtag then my_rtag = inidata.main.rtag else my_rtag = 'null' end
if inidata.main.ftag then my_ftag = inidata.main.ftag else my_ftag = 'null' end
end