abdalaziz Posted June 19, 2018 Share Posted June 19, 2018 local t, y, v = getTimerDetails ( timer ); setAccountData(getAccount(editboxtext),"Time",r) setAccountData(getAccount(editboxtext),"Timer",true) setTimer(function() local account = getAccountName(getAccount(editboxtext)) setAccountData(getAccount(acc),"Time",r) end,1000,0) where's the problem ? , the Account Data not working.. why it's don't working? @CodyJ(L) Link to comment
Captain Cody Posted June 19, 2018 Share Posted June 19, 2018 Well first of all local account = getAccountName(getAccount(editboxtext)) counteracts itself secound, look at this and you can easily figure out what the problem is local account = getAccountName(getAccount(editboxtext)) setAccountData(getAccount(acc),"Time",r) Link to comment
abdalaziz Posted June 19, 2018 Author Share Posted June 19, 2018 (edited) still not working, oh , now? local aPlayer = source; setTimer(function() local acc = getPlayerAccount(aPlayer) setAccountData(acc,"Time",r) end,1000,0) sorry for my poor internet , it's not working Edited June 19, 2018 by abdalaziz Link to comment
abdalaziz Posted June 19, 2018 Author Share Posted June 19, 2018 @#,+( _xiRoc[K]; > @N3xT Link to comment
Rockyz Posted June 19, 2018 Share Posted June 19, 2018 put the full code so i can see the problem Link to comment
abdalaziz Posted June 20, 2018 Author Share Posted June 20, 2018 13 hours ago, #,+( _xiRoc[K]; > said: put the full code so i can see the problem addEventHandler("onPlayerLogin",root,function() local aPlayer = source; local mytimer = setTimer(function() if not isTimer(mysec) then mytimer = nil return end local accv = getPlayerAccount(aPlayer) local rv, av, mv = getTimerDetails ( extimerx ); setAccountData(accv,"Time",rv) end,1000,0); setAccountData(acc,"Timer",true) local r, a, m = getTimerDetails ( extimerx ) setAccountData(acc,"Time",r) end ) @#,+( _xiRoc[K]; > Where's the problem ? my problem is .... it's working ,, but after a few minutes , Debugscript sayd to me: Expected Account At Argument 1 , here: setAccountData(accv,"Time",rv) and sayd : Expected Element At Argument 1 ,here: local accv = getPlayerAccount(aPlayer) 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