Jump to content

[HELP]Pos save,(SOLVED(SEBAS))


m4rsje

Recommended Posts

-- part of your code:
local playerAccount = isPlayerLoggedIn(player) -- you are checking if the player is logged (getting true or false)
if playerAccount then -- if true
setAccountData(playerAccount, "s.HandMoney", tonumber(getPlayerMoney(player))) -- save data to .. "true"?
 
-- conclusion:
-- you need to getPlayerAccount after checking if he/she is logged in
-- then save/read to this account

Link to comment
it already checks if its an playerAccount ;)

oh, sorry, i didnt notice that isPlayerLoggedIn is your custom function :(

loler is right - i dont know which version is not using setPedModel anymore, but you should change it setElementModel

u tried to debug it with debugscript ?

@loler:

i said same thing to you few days ago, i see you learnt something :P

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...