Название: Reverse pass for variables, and etc. (for Extensions) Отправлено: truefriend-cz от 10 августа 2017, 15:25:54 mai92, do you cad add reverse (both) steps for Extensions on one Event?
I want back side for pass (sharing) variables on one Event. Example problem: 0.lua: Code: Код: --[[ <HCExtension> @name Test 0.lua @author truefriend-cz @event AnswerHeaderReceived/Test0 </HCExtension> ]] function Test0() var_nul = 'OK transfer from 0.lua' hc.put_to_log ('Result: '..var_one) end 1.lua Code: Код: --[[ <HCExtension> @name Test 1.lua @author truefriend-cz @event AnswerHeaderReceived/Test1 </HCExtension> ]] function Test1() hc.put_to_log ('Result: '..var_nul) var_nul = 'OK transfer from 1.lua' end Output from 1.lua: OK transfer from 0.lua Output from 0.lua (log): attempt to concatenate global 'var_one' (a nil value)
Powered by SMF 1.1.3 SMF © 2006, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com |