ReGo Posted February 2, 2015 Posted February 2, 2015 Hey, where is show mta sdk password? define('SDK_IP', ""); define('SDK_PORT', "22003"); define('SDK_USER', "where is this?"); define('SDK_PASSWORD', "and this");
Jaysds1 Posted February 2, 2015 Posted February 2, 2015 What Module/SDK is this for? MTA-MySQL? MySQL? My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
GTX Posted February 2, 2015 Posted February 2, 2015 $ip = "ip"; $port = port; $user = "user"; $pass = "pass"; $resname = "your_resource"; include("sdk/mta_sdk.php"); $mtaServer = new mta($ip,$port,$user,$pass); $resource = $mtaServer->getResource($resname); $table = $resource->call("your_function"); function your_function() -- Whatever end <export function="your_resource" type="server" http="true"/> This? Edit: To set a password, rewrite variables in your PHP SDK file @ lines 18-19 Do you require a paid scripter? Contact me! (Unavailable) Currently I am experienced in Lua, PHP, HTML, CSS, SQL and JS. Developer and owner of https://projectbea.st - Project Beast
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