WalkinG Posted August 12, 2016 Share 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) Link to comment
Bonus Posted August 13, 2016 Share 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. Link to comment
WalkinG Posted August 13, 2016 Author Share Posted August 13, 2016 Now it works, thanks 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