mars Posted August 25, 2009 Share Posted August 25, 2009 hey guys, can some1 tell me whats wrong with this: function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getPedSkin ( source ) setAccountData ( playeraccount, "skin", playerskin ) end end function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin" ) if ( playerskin ) then setPedSkin ( source, playerskin ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) thx. Link to comment
50p Posted August 25, 2009 Share Posted August 25, 2009 Any errors/warnings in the debug window/box (/debugscript 3)? Link to comment
50p Posted August 25, 2009 Share Posted August 25, 2009 So what is actually wrong? It saves but doesn't save? Doesn't get the account data? accounts.xml is not updated? Link to comment
mars Posted August 25, 2009 Author Share Posted August 25, 2009 account.xml changes the skin to 0. Link to comment
mars Posted August 25, 2009 Author Share Posted August 25, 2009 o problem solved. thx for your time anyway. i had a spawn in my base that sets your skin to 0 Link to comment
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