Jump to content

#C - Lua Question


Jason_Gregory

Recommended Posts

Posted

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 ?

Posted
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.

Posted
Ah...thanks alot Jumba :o

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..

Posted

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#.

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...