Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. function Main()
  2. FBIVVoit(1,9,1,0)
  3. FBIVVoit(1,9,1,1)
  4. end
  5.  
  6. function FBIVVoit(numTrain, numCar, numFBIVVoit, State)
  7. numTrainCount = 1
  8. while numTrainCount <= numTrain do
  9. numCarCount = 1
  10. while numCarCount <= numCar do
  11. FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
  12. print('SCVSStatutsV' .. numCarCount .. '.FBIVVoit'
  13. .. ' before the change is: ' .. FBIVVoit)
  14. f:write(string.format('n' .. os.date() .. ' -- ' .. 'SCVSStatutsV'
  15. .. numCarCount .. '.FBIVVoit' .. ' before the change is: ' .. FBIVVoit))
  16. dictionary.setvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit', State);
  17. FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
  18. print('SCVSStatutsV' .. numCarCount .. '.FBIVVoit' .. ' is now: ' .. FBIVVoit)
  19. f:write(string.format('n' .. os.date() .. ' -- ' .. 'SCVSStatutsV'
  20. .. numCarCount .. '.FBIVVoit' .. ' is now: ' .. FBIVVoit))
  21. fSleep(1)
  22. numCarCount = numCarCount + 1
  23. end
  24. numTrainCount = numTrainCount + 1
  25. end
  26. print('Run stopped at ' .. os.date());
  27. f:write(string.format('n' .. os.date() .. ' -- ' .. 'Run stopped'))
  28. f:close()
  29. end
  30.  
  31. FBIVVoit = dictionary.getvalue(Dict, 'SCVSStatutsV' .. numCarCount .. '.FBIVVoit')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement