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. Contact me if you are looking for a Web Developer. 3rd of October 2014 - Founder of RomaniaZ
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) Datastore - Store data to a database quickly. (Useful for saving scripted tables)
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