Jason_Gregory Posted February 22, 2010 Share Posted February 22, 2010 Hi Community, im trying to call a exported function in my #C Project but it allways returns a curious Result... After downloading #C Software Development Kit and after importing it, i started creating some functions but yeah...it´s a bit messed My Console tells me something about the, ~i dont have authority for http. Im not able to export my function. What i need to do ? Link to comment
Jumba' Posted February 22, 2010 Share Posted February 22, 2010 Hi Community,im trying to call a exported function in my #C Project but it allways returns a curious Result... After downloading #C Software Development Kit and after importing it, i started creating some functions but yeah...it´s a bit messed My Console tells me something about the, ~i dont have authority for http. Im not able to export my function. What i need to do ? You need to export the function with type="http" in the meta.xml file. Link to comment
Jason_Gregory Posted February 22, 2010 Author Share Posted February 22, 2010 Ah...thanks alot Jumba Damn i forgot to set the "http" row to true <export function="function_query" http="true" /> // I dont understand what http has to do with #C but it works Thanks Link to comment
Jumba' Posted February 22, 2010 Share Posted February 22, 2010 Ah...thanks alot Jumba Damn i forgot to set the "http" row to true <export function="function_query" http="true" /> // I dont understand what http has to do with #C but it works Thanks The C# SDK uses HTTP POST requests or something like that.. Link to comment
50p Posted February 23, 2010 Share Posted February 23, 2010 Every SDK for MTA uses HTTP requests to call exported functions therefore every function you want to call with SDK needs to be exported with http attribute set to true. And Jason_Gregory, it's not #C it's C#. 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