liamknight24 Posted November 17, 2009 Share Posted November 17, 2009 hello again MTA i have a little problem with skin saving it does save it to the account but when the player logs in he is just cj?? so the onplayerquit works fine here is the onplayerlogin if it helps and i have allready looked on the wiki thanks for the advice: function onPlayerlogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerSkin = getAccountData ( playeraccount, "Skin" ) if ( playerSkin ) then setPlayerSkinID ( source, playerSkin ) could this be a problem with the logingui im not too shure becouse i did check the resource and it dosent have it in?? thanks for any help. Link to comment
CallumD Posted November 17, 2009 Share Posted November 17, 2009 setPlayerSkinID? Try setElementModel instead. Link to comment
liamknight24 Posted November 17, 2009 Author Share Posted November 17, 2009 setPlayerSkinID? Try setElementModel instead. so would it be like this ??: function onPlayerlogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local elementmodel = getAccountData ( playeraccount, "Skin" ) if ( playerSkin ) then setelementmodel ( source, playerSkin ) and this should work ?? but i used basicly the same layout for the skin to save and checked the account folder and it did actualy save it??? but still wont load it thanks for the help mate Link to comment
50p Posted November 17, 2009 Share Posted November 17, 2009 setPlayerSkinID? Try setElementModel instead. so would it be like this ??: function onPlayerlogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local elementmodel = getAccountData ( playeraccount, "Skin" ) if ( playerSkin ) then setelementmodel ( source, playerSkin ) and this should work ?? but i used basicly the same layout for the skin to save and checked the account folder and it did actualy save it??? but still wont load it thanks for the help mate Scripting seems to be hard for you and your first scripting/programming languages... I can see you losing more nerves on scripting than your life complications. You will learn everything you need to know to start scripting for MTA: https://forum.multitheftauto.com/viewtop ... 91&t=25032 It may take you a day or 2 just to understand scripting concept but it's worth it. Tip of the day for you: setelementmodel is not the same as setElementModel. 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