Jump to content

[Simple question] What/Where is the error? callRemote [Solv]


Recommended Posts

I have a lot of callRemote commands, but the recent MTA:SA updates makes this not work.

R.I.P: callRemote command;

Little example:

LUA

  
-- LUA 
function version(ver) 
        outputChatBox("The newer version is "..ver) -- Return ERROR on variable ver 
end 
  
function checkversion() 
    callRemote("http://localhost:2015/dev/query.php", version) 
end 
checkversion() 
  

PHP

  
<?php  
include("mta_sdk.php"); 
$input = mta::getInput(); 
mta::doReturn("1.66"); 
?> 

All files and URLs are okay! Tested at 3 different URLs.

Edit:

Solved! Fix: The newer version of MTA needs ase enabled

Edited by Guest
Link to comment

Make sure that the resources have access to function.callRemote.

Try adding this to your meta.xml:

    <aclrequest> 
        <right name="function.callRemote" access="true"></right> 
    </aclrequest> 
  

And in console, type the following:

aclrequest allow resourceName all 

Link to comment
Make sure that the resources have access to function.callRemote.

Try adding this to your meta.xml:

    <aclrequest> 
        <right name="function.callRemote" access="true"></right> 
    </aclrequest> 
  

And in console, type the following:

aclrequest allow resourceName all 

This resource is at ADMIN group.

And in previous version (version of 1 week ago) was working.

Edit:

Solved! Fix: The newer version of MTA needs ase enabled

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