eAi
Retired Staff-
Posts
2,986 -
Joined
-
Last visited
-
Days Won
1
Everything posted by eAi
-
Well... It could be 'fixed', yes, but the reason it works as it does it that the callback functions can take multiple arguments. Each element of the JSON array you return over HTTP becomes an argument of the callback function. I guess we could have a special-case for where the JSON element provided isn't an array and treat that as the first argument to the callback function. I'd avoid doing this - it's provides some convenience for your case, but I think confuses matters and makes the outcome potentially ambiguous - what if you have something that sometimes returns a List<> and sometimes a Dictionary<>? In the first case, that would cause each list item to get passed to the callback function as separate argument, whereas the second would result in a table being passed as the only argument. This is inconsistent and potentially very confusing. One thing I think would be good to have would be better reporting of incorrect data so that this is easy to fix. I'm not sure anyone else will do this, but you're more than welcome to submit a patch - it sounds like you'd be capable! We're always very keen to get more people actively involved in fixing bugs!
-
We've had some reports of this a while back, and I did some tests and couldn't reproduce it. I think your problem may be that you aren't returning an array. From looking quickly at the PHP SDK and the MTA code (here) it seems that this is the only way it will work. At it's simplest, you can just wrap your JSON string in [ and ] which should fix it. Let me know how you get on. If you can get this to work, we'd be grateful if you could share an example on our wiki for other users. Edit: I've updated the wiki page for callRemote to make it a bit clearer.
-
MTA doesn't touch any GTA files - I don't know if SAMP does, if it does, that might prevent MTA working properly. We've never heard of that before though!
-
I'm afraid we can't provide support for individual servers - your dispute is between you and the server owner. We also don't help you avoid bans.
-
It's the anti-virus software that's unprofessional. Here's some information about anti-virus false-positives: Details of false positives affecting parts of windows: http://en.wikipedia.org/wiki/Antivirus_ ... _positives A somewhat old list of false positives: http://www.nirsoft.net/false_positive_report.html Some information from Symantec regarding false positives: http://service1.symantec.com/sarc/sarc. ... itive.html False positives are the price you pay for extra security and protecting from viruses your anti-virus developers haven't seen before. Please let us know the anti-virus you're using and the definition version and we'll inform them, or alternatively, let them know yourself.
-
MTA has from time to time been detected as a virus by over-eager virus scanners, due to the methods MTA using being somewhat similar to methods viruses sometimes use. As others have said, the fact that millions of people have downloaded and played MTA should be enough proof that MTA isn't a virus.
-
You can use callRemote and the PHP SDK.
-
We've had a lot of contact with R*, unfortunately we're not able to share any more than that, but they have been very supportive of MTA.
-
Do you have permission to distribute these files?
-
Moved post to scripting forum.
-
Unzipping resources is unlikely to help and likely just to confuse you if you're not careful.
-
Loadfile will be disabled in a future release, it is not meant to be enabled at all.
-
Merged two of Tony's topics.
-
Well, if you help ccw fix it, there's a chance you'll be able to play 1.1. It's not going to magically fix itself.
-
If you found the server source, you found the client source as they're both along side eachother on google code. The client code is in the MTA10 directory.
-
Well, we've never heard of any viruses, and we would if there were any. Resources don't even come in rar files, they come in zip files. This sounds like someone is spreading false information for some reason.
-
I'm not sure what you're on about - there's no way you can get a virus from MTA (unless there's a bug in our code of course). MTA never executes anything from a server except Lua scripts, which are unable to do anything to your computer. At most a server could put a virus executable on your computer (as CrystalMV says) but this wouldn't actually be able to be run, unless you go searching for it in your resource directories and run it. Can you give an example of a resource that has a virus in it?
-
You know, map files are designed exactly for this and require you to write 0 lines of code.
-
Search for 'gate' on the forum, you're not the first to want to do this.
-
I very much doubt anything like that will work. We expect you to use it with standard web hosting.
-
That isn't going to work as the files can't be downloaded from those links. The server expects // to give it the raw file, not a page offering the option to download it. You'll need to use some 'real' hosting.
-
Tell us the URL you're specifying.
-
They should be uploaded unzipped. The URL should point to the directory that contains the resource folders.
-
We will ban such people if we notice them, but there's nothing to stop them creating new accounts.