manawydan Posted October 18, 2013 Share Posted October 18, 2013 function ItemG(thePlayer,ID,dop) outputChatBox("LOL") exports [ "heroinventory" ]:addPlayerItem(thePlayer,ID,1) destroyElement(source) end addEventHandler("onPlayerPickupItem",root,ItemG) no work. Link to comment
Markeloff Posted October 18, 2013 Share Posted October 18, 2013 What this function is supposed to do? What is the debug ? source is not defined. Link to comment
Castillo Posted October 18, 2013 Share Posted October 18, 2013 'source' must have been passed with the event. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now