Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Main()
- FBIVVoit(1,9,1,0)
- FBIVVoit(1,9,1,1)
- end
- function FBIVVoit(numTrain, numCar, numFBIVVoit, State)
- numTrainCount = 1
- while numTrainCount <= numTrain do
- numCarCount = 1
- while numCarCount <= numCar do
- FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
- print('SCVSStatutsV' .. numCarCount .. '.FBIVVoit'
- .. ' before the change is: ' .. FBIVVoit)
- f:write(string.format('n' .. os.date() .. ' -- ' .. 'SCVSStatutsV'
- .. numCarCount .. '.FBIVVoit' .. ' before the change is: ' .. FBIVVoit))
- dictionary.setvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit', State);
- FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
- print('SCVSStatutsV' .. numCarCount .. '.FBIVVoit' .. ' is now: ' .. FBIVVoit)
- f:write(string.format('n' .. os.date() .. ' -- ' .. 'SCVSStatutsV'
- .. numCarCount .. '.FBIVVoit' .. ' is now: ' .. FBIVVoit))
- fSleep(1)
- numCarCount = numCarCount + 1
- end
- numTrainCount = numTrainCount + 1
- end
- print('Run stopped at ' .. os.date());
- f:write(string.format('n' .. os.date() .. ' -- ' .. 'Run stopped'))
- f:close()
- end
- FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement