ahmedo01 Posted April 7, 2015 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.
ahmedo01 Posted April 7, 2015 Author Posted April 7, 2015 Returns Array(), seems not returning any values. Is there a other way to get value?
xXMADEXx Posted April 7, 2015 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
Mr.unpredictable. Posted April 7, 2015 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).
xXMADEXx Posted April 7, 2015 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.
ahmedo01 Posted April 8, 2015 Author 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.
ALw7sH Posted April 8, 2015 Posted April 8, 2015 You can check the original scoreboard it has something like that but it's with js not php
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