crismar Posted May 3, 2014 Posted May 3, 2014 function setBackupOnConnect() if getAccountData(getPlayerAccount(source), "ucpZombiesKilled") == nil then setAccountData(getPlayerAccount(source), "ucpZombiesKilled", 0) end setElementData(source, "backupPK", getElementData(source, "zombieskilled")) outputChatBox("> playerAccountData "..getPlayerAccount(source).." ucpHeadshots w/: "..getAccounData(getPlayerAccount(source), "ucpHeadshots"), getRootElement(), 255, 0, 0, false) end addEventHandler("onPlayerLogin", getRootElement(), setBackupOnConnect) This is a bit of a ucp I am making for my server. The problem I have is that for some unknown reasons, the onPlayerLogin doesn't get triggered. Any ideas for why this doesn't happen ? Contact me if you are looking for a Web Developer. 3rd of October 2014 - Founder of RomaniaZ
Dealman Posted May 3, 2014 Posted May 3, 2014 Are there any debug messages, also, you've made sure it's running server-side yeah? If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
justn Posted May 3, 2014 Posted May 3, 2014 Well to begin with, you spelt getAccountData wrong on line 4. Datastore - Store data to a database quickly. (Useful for saving scripted tables)
crismar Posted May 3, 2014 Author Posted May 3, 2014 I get no error, the event simply doesn't get triggered... And yes, it's serverside: Contact me if you are looking for a Web Developer. 3rd of October 2014 - Founder of RomaniaZ
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