Hallo ich habe noch ein paar kleine warnings in dem Script und die würde ich auch noch gerne beheben dann hätte ich erstma keine Warnings mehr da die ganzen Errors auch jetzt weg sind
Script Ultimate ( Vio )
zu den Problemen:
WARNING: [sonstiges]/ultimate/anzeigen/prompt_server.lua:3: Bad argument @ 'fileGetSize' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:44] WARNING: [sonstiges]/ultimate/anzeigen/prompt_server.lua:4: Bad argument @ 'fileRead' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:44] WARNING: [sonstiges]/ultimate/anzeigen/prompt_server.lua:5: Bad argument @ 'fileClose' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fraktionen/newsreporter/newspaper_server.lua:47: Bad argument @ 'fileGetSize' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fraktionen/newsreporter/newspaper_server.lua:48: Bad argument @ 'fileRead' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fraktionen/newsreporter/newspaper_server.lua:52: Bad argument @ 'fileClose' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fun/lotto/lotto_server.lua:4: Bad argument @ 'fileGetSize' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fun/lotto/lotto_server.lua:5: Bad argument @ 'fileRead' [Expected scriptfile at argument 1, got boolean]
[2018-03-21 09:01:45] WARNING: [sonstiges]/ultimate/fun/lotto/lotto_server.lua:6: Bad argument @ 'fileClose' [Expected scriptfile at argument 1, got boolean]
prompt_server.lua
promptPath = ":vio_stored_files/prompt/prompt.vio"
local promptFile = fileOpen ( promptPath, false )
local filesize = fileGetSize ( promptFile )
promptMainText = fileRead( promptFile, filesize )
fileClose ( promptFile )
Da sollen die Probleme sein aber ich habe keine ahnung was ich da machen muss
Newspaper_server.lua
function loadnewsPaper()
local newsPaper = fileOpen ( newsPaperPath, false )
local filesize = fileGetSize ( newsPaper )
newsPaperText = fileRead ( newsPaper, filesize )
if not newsPaperText then
newsPaperText = ""
end
fileClose ( newsPaper )
end
lotto_server.lua
lottoJackpotPath = ":vio_stored_files/lotto/jackpot.vio"
answercode = quizcode1 .. quizcode2
local jackpotFile = fileOpen ( lottoJackpotPath, false )
local filesize = fileGetSize ( jackpotFile )
lottoJackpot = tonumber ( fileRead ( jackpotFile, filesize ) )
fileClose ( jackpotFile )
so das waren alle zeilen und habe keine ahnung wo das Problem ensteht also die Warnings