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 ?
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?
justn Posted May 3, 2014 Posted May 3, 2014 Well to begin with, you spelt getAccountData wrong on line 4.
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:
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