#Paper Posted January 7, 2011 Posted January 7, 2011 Is there a function that check if already exists a Data in a account? My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
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 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
#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... My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
SDK Posted January 7, 2011 Posted January 7, 2011 What Solidsnake14 wrote works fine, you probably copied it wrong, show us your code Learn Lua - Learn to script - GUI scripting Scripter tools - Find/fix errors yourself(!) Don't pm me for scripting help, keep it for the Scripting subforum!
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
#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 My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
Castillo Posted January 8, 2011 Posted January 8, 2011 show us your whole code, where you get the player element, etc. 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