Jump to content

php


bandi94

Recommended Posts

I am makig a new version of my country detector that can find your city now i have made a simpel php and a server side i added into acl etc etc.. but my problem is always return nil

include("sdk/mta_sdk.php"); 
$table = mta::getInput(); 
$text = $table[0]; 
if(isset($text)){ 
$cat = "Diego"; 
mta::doReturn($cat); 
} 

and a lua

function result(sum) 
if sum==nil then  
 outputChatBox("nil") 
else 
    outputChatBox(sum) 
end 
end 
function addNumbers(number1) 
    callRemote ( "http://dgt-mta.comoj.com/MTA/test.php", result, "text" ) 
end  
addNumbers ( 123 )  
  

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