Confusion with call syntax
#1
Lightbulb 
Hi. I can't help but noticed that sometimes stuff is done through cRoot:Get(), or like so:
Code:
local root = cRoot:Get()
local world = root:GetDefaultWorld()
And sometimes it's like cPluginManager.AddHook( cPluginManager.HOOK_PLAYER_LEFT_CLICK, OnPlayerLeftClick )

Can someone please explain me the sacred meaning behind all this? Because I'd like to know in my mind in which case what should be used, I don't like the idea of having to ho through 5 different previous sources to find my case and using it.
Reply
Thanks given by:


Messages In This Thread
Confusion with call syntax - by Taugeshtu - 01-03-2014, 03:34 AM
RE: Confusion with call syntax - by xoft - 01-03-2014, 05:00 AM



Users browsing this thread: 1 Guest(s)