Setras Posted August 31, 2011 Share Posted August 31, 2011 By some reason we do stuff like that: Code: function Init() common.RegisterEventHandler(MemRequestHandler, "U_EVENT_ADDON_MEM_USAGE_REQUEST") common.RegisterEventHandler(Avcrea, "EVENT_AVATAR_CREATED") end Init() But for god's sake, can't we just use: Code: common.RegisterEventHandler(MemRequestHandler, "U_EVENT_ADDON_MEM_USAGE_REQUEST") common.RegisterEventHandler(Avcrea, "EVENT_AVATAR_CREATED") ??? Quote Link to comment Share on other sites More sharing options...
icreator Posted August 31, 2011 Share Posted August 31, 2011 да точно. просто в целях отладки иногда можно выделить init(), а так же если нужен вызов из другого файла Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.