dragonofdark Posted June 23, 2011 Posted June 23, 2011 Hello, I want for my members to see what is their factions when then do /getfaction . As my faction system use SQL I need to make an exported function. The exported function is : function getPlayerFactions( player ) return p[ player ] and p[ player ].factions or false end Thanks, dragonofdark
JR10 Posted June 23, 2011 Posted June 23, 2011 If your faction system uses account data then you don't need to export just do: string getAccountData ( account theAccount, string key ) And if it uses SQL then you still don't need to export because you can executeSQLQuery from any resources. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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