#Paper Posted January 7, 2011 Posted January 7, 2011 Is there a function that check if already exists a Data in a account?
Castillo Posted January 7, 2011 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
#Paper Posted January 7, 2011 Author 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...
SDK Posted January 7, 2011 Posted January 7, 2011 What Solidsnake14 wrote works fine, you probably copied it wrong, show us your code
Castillo Posted January 8, 2011 Posted January 8, 2011 you don't have argument "account" i'm guessing, as SDK said show us your code.
#Paper Posted January 8, 2011 Author 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
Castillo Posted January 8, 2011 Posted January 8, 2011 show us your whole code, where you get the player element, etc.
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