crismar Posted May 2, 2014 Posted May 2, 2014 I'm building a UCP and I've some problems with this event handler that I never used before: onPlayerWasted I have this simple function: function saveLifeStats() local whoDied = getPlayerName(source) outputChatBox("Ai murit cand aveai "..getElementData(whoDied, "lifetime"), whoDied, 255, 0, 0, false) end addEventHandler("onPlayerWasted", getRootElement(), saveLifeStats) The problem is I get this error when a player dies: Attempt to concatenate a boolean value.
justn Posted May 2, 2014 Posted May 2, 2014 function saveLifeStats() outputChatBox("Ai murit cand aveai "..getElementData(source, "lifetime"), source, 255, 0, 0, false) end addEventHandler("onPlayerWasted", getRootElement(), saveLifeStats)
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