WalkinG Posted August 12, 2016 Posted August 12, 2016 Sorry for my English I need to get an account even with the player offline , but I do not know to do this this mode works function restante (source) conta = getPlayerAccount(source) valor = getAccountData (conta,"Walking.s") setAccountData (conta,"Walking.s",valor+1) end addCommandHandler ("acc",restante) mas eu quero algo tipo function restante (source) valor = getAccountData ("WalkinG","Walking.s") setAccountData ("WalkinG","Walking.s",valor+1) end addCommandHandler ("acc",restante)
Bonus Posted August 13, 2016 Posted August 13, 2016 Use getAccount ( "WalkinG" ) to get the account. First argument in getAccountData and setAccountData has to be an account, so you can't just use a string and expect it to work.
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