TheIceman1 Posted March 10, 2013 Posted March 10, 2013 How can i remove account data? Need paid scripter just pm me i will accept every job!
Castillo Posted March 10, 2013 Posted March 10, 2013 You can't remove it. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Tete omar Posted March 10, 2013 Posted March 10, 2013 Of course you can; by setting the data value to false bool setAccountData ( account theAccount, string key, string value ) E.g: setAccountData (getPlayerAccount(getPlayerFromName("TheIceman1")) , "theData", false ) and according to getAccountData Returns a string containing the stored data or false if no data was stored under that key.
TheIceman1 Posted March 10, 2013 Author Posted March 10, 2013 I fix it already Need paid scripter just pm me i will accept every job!
Castillo Posted March 10, 2013 Posted March 10, 2013 Of course you can; by setting the data value to false bool setAccountData ( account theAccount, string key, string value ) E.g: setAccountData (getPlayerAccount(getPlayerFromName("TheIceman1")) , "theData", false ) and according to getAccountData Returns a string containing the stored data or false if no data was stored under that key. I know that you can do that, but you can't remove the data, like you can with element data. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Tete omar Posted March 10, 2013 Posted March 10, 2013 Hmm, you mean 'theKey'?, or there is no function that removes the data?
Castillo Posted March 10, 2013 Posted March 10, 2013 The row on the database, it can't be removed. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
TAPL Posted March 11, 2013 Posted March 11, 2013 The row on the database, it can't be removed. You can by setting it to false or nil, i tried before and it was removed but i don't remember which one.
Moderators IIYAMA Posted March 11, 2013 Moderators Posted March 11, 2013 You can set it to nil. But will the account + keyword still remain? With tables it can't be removed like this. playerT= {} playerT[1] = player playerT[1] = nil #playerT --1 --playerT={nil} but table.remove(,) Also when you use key names like this. playerT={} playerT[player]={} playerT[player]=nil -- #playerT does not work. (not in fake array) It will probably look like this: playerT={[player1]=true,[player2]=true} and when nil: playerT={[player1]=nil,[player2]=nil} Tables are another story.... but it makes sense to me, that it works the same only in another scripting language. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Castillo Posted March 11, 2013 Posted March 11, 2013 The row on the database, it can't be removed. You can by setting it to false or nil, i tried before and it was removed but i don't remember which one. Oh, with false it works, I had tried something like this before, since this was already asked, but it didn't work, maybe I tried with nil. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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