ahmedo01 Posted April 7, 2015 Share Posted April 7, 2015 $mtaServer->getResource("someResource")->call("someFunction"); If i do this, can function return any values? I want to get data from server. Link to comment
WhoAmI Posted April 7, 2015 Share Posted April 7, 2015 Yea, I think it can using 'return' in function. Link to comment
ahmedo01 Posted April 7, 2015 Author Share Posted April 7, 2015 Returns Array(), seems not returning any values. Is there a other way to get value? Link to comment
ahmedo01 Posted April 7, 2015 Author Share Posted April 7, 2015 only way is using mysql? i need other way Link to comment
xXMADEXx Posted April 7, 2015 Share Posted April 7, 2015 (edited) I know using return works with PHP, but I don't quite remember how to use the MTA PHP SDK. What happens if you run this? Also, make sure that the website-login (in mta class constructor) is authorized. print_r ( $mtaServer->getResource("someResource")->call("someFunction") ); If this is just returning an empty array, can you post your lua code please? Edited April 7, 2015 by Guest Link to comment
Mr.unpredictable. Posted April 7, 2015 Share Posted April 7, 2015 only way is using mysql? i need other way Even i think Mysql is the only way in MTA.(I might be wrong). Link to comment
xXMADEXx Posted April 7, 2015 Share Posted April 7, 2015 only way is using mysql? i need other way Even i think Mysql is the only way in MTA.(I might be wrong). PHP does work, using the PHP_SDK. Link to comment
ahmedo01 Posted April 8, 2015 Author Share Posted April 8, 2015 I tested with other code and php sdk works and returns. How can i do dynamic table? I want to do scoreboard. Link to comment
ALw7sH Posted April 8, 2015 Share Posted April 8, 2015 You can check the original scoreboard it has something like that but it's with js not php Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now