#Paper Posted January 7, 2011 Share Posted January 7, 2011 Is there a function that check if already exists a Data in a account? Link to comment
Castillo Posted January 7, 2011 Share Posted January 7, 2011 just do, data = getAccountData(account,"my_data") if data then outputChatBox("Data is exist") else outputChatBox("Data doesn't exist") end Link to comment
#Paper Posted January 7, 2011 Author Share Posted January 7, 2011 just do, data = getAccountData(account,"my_data") if data then outputChatBox("Data is exist") else outputChatBox("Data doesn't exist") end no Solid... don't works, it returns as Bad Argument... Link to comment
SDK Posted January 7, 2011 Share Posted January 7, 2011 What Solidsnake14 wrote works fine, you probably copied it wrong, show us your code Link to comment
Castillo Posted January 8, 2011 Share Posted January 8, 2011 you don't have argument "account" i'm guessing, as SDK said show us your code. Link to comment
#Paper Posted January 8, 2011 Author Share Posted January 8, 2011 you don't have argument "account" i'm guessing, as SDK said show us your code. i don't use that code, but can you fix this? local paccount = getPlayerAccount(player) if getAccountData(paccount, "msprpg.license") == 0 then introduzione () end Link to comment
Castillo Posted January 8, 2011 Share Posted January 8, 2011 show us your whole code, where you get the player element, etc. 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