08.07.2015, 06:11
Yes, storage is one of possible approaches for global/static variables. In more advanced cases you can use an external Redis key-value database. This way several LMs can share data between them.
Only resident script variables are static by default. Simplified resident script logic:
Only resident script variables are static by default. Simplified resident script logic:
Code:
while SCRIPT_ACTIVE do
RUN_RESIDENT_FUNCTION()
sleep(SCRIPT_SLEEP_TIME)
end