Jump to content

Use a exported function in ouputChatBox


Recommended Posts

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

Link to comment

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.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...