manawydan Posted October 18, 2013 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.
Markeloff Posted October 18, 2013 Posted October 18, 2013 What this function is supposed to do? What is the debug ? source is not defined.
Castillo Posted October 18, 2013 Posted October 18, 2013 'source' must have been passed with the event.
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