Jump to content
  • 0

Question about how the MTA SDK works?


cokacola

Question

Posted

Hey, I am trying to make a little server manager in C#, and there isn't an SDK for it, so I am going to make one.

I just want to know how the other SDKs work? how do I communicate with it?

I assume it involves the web panel, a custom resource(I can setup the resource, since I understand PHP and can look at the SDK page for that), and the POST protocol.

Also, if I make this SDK for C#, is anyone else interested in obtaining it(should I release it)? :)

9 answers to this question

Recommended Posts

  • 0
Posted

Thanks!

I did a search for "SDK" and it didn't come up on the wiki, so I thought it did not exist.

I'll look into it :)

BTW, if I made a server manager, would anyone be interested in it? :P

  • 0
Posted

Depends what it did, of course! I'd certainly be interested to see anything interesting done with the web interface.

  • 0
Posted

Okay, cool!

I noticed the SDK has no way of converting the json string to an array, so should I use Json.Net, or create a new method for the SDK?

  • 0
Posted

Well, I'd say that's a mistake in the API really - CallFunction should return the JSON-decoded array not the raw string. Feel free to fix that using Json.Net (or whatever is easiest) and upload a new version.

The SDKs have mostly been made by different people, so they have slightly different APIs.

  • 0
Posted

Ah, okay then.

If I fix it, I'll send him the new one, or add it to the wiki or something.

Quick question: are fires created with scripting elements? if so, is there any way to tell if they get put out? :)

  • 0
Posted

You can use createFire, but that's about it. Fires aren't elements and you've got no control over them. That's something that MTA could support, but doesn't, at the moment anyway.

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