Kenix Posted August 9, 2012 Posted August 9, 2012 Good job! http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
FatalTerror Posted August 9, 2012 Author Posted August 9, 2012 Nice tuto , it is very useful c:, but when I done the first example appear Hello Mr.Padawan this is right ? or I done something bad in this ? Yea, you are right With this example, you learn how transfer informations Site > Server. You say to the server to get the name of your cat, the site get & return it to the server. Paid developer. Twitter: @willia_am - http://www.williamdasilva.fr
KenXeiko Posted January 24, 2013 Posted January 24, 2013 Could someone provide a mirror link for the SDK (0.4)? I can't download it from the current link Multi Theft Auto: San Andreas - DM/DD Race Server Multi Theft Auto: San Andreas - Freeroam Server (WIP) Wolfenstein: Enemy Territory Server Mafia II Multiplayer Server More Insane-Players Server
XFawkes Posted February 3, 2013 Posted February 3, 2013 I need your help about PHP_SDK plugin. I know how to return strings through php, so I just ask: How can I return an image to the MTA? doReturn - returns nil all the time I tried converting image to a string , but dxCreateTexture don't treat that string as a pixels. Maybe do you know how to convert it so MTA will understand the code? Also tied sending an image to a server [ftp] but my php server do not allow ftp connections. Any clues? European Pro Gamers Member LUA Programmer
Anderl Posted February 3, 2013 Posted February 3, 2013 You only need to get the image file content and send it as a string ( simply read the file ). "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
XFawkes Posted February 6, 2013 Posted February 6, 2013 I tried fread and file_get_contents and It seems that this is working, because when I am outputing the string version of an image I see a code in the browser, but when I am trying to send it to MTA, MTA outputs nil all the time. <?php include( "mta_sdk.php" ); $input = mta::getInput(); $player = $input[0]; $url = $input[1]; $str = file_get_contents($url); mta::doReturn($player,$str); ?> function imageURL(thePlayer,cmd,url) callRemote ( "http://mywebsite.com/image.php", mail_return, thePlayer, url) end addCommandHandler("url",imageURL) function mail_return(player,str) outputConsole(player) -- returns me as an element outputConsole(str) -- returns always 'nil' end European Pro Gamers Member LUA Programmer
GTX Posted February 6, 2013 Posted February 6, 2013 Why don't you use fetchRemote? 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
ExyTicTac Posted March 18, 2013 Posted March 18, 2013 Thanks for an outdated url, very... appreciated.
Anderl Posted March 18, 2013 Posted March 18, 2013 Seriously, did you realize this is a year and 2 months old thread? Obviously, it's outdated already. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
FatalTerror Posted March 29, 2013 Author Posted March 29, 2013 No stress guys... http://code.opencoding.net/mta/mtaphpsdk_0.4.zip Paid developer. Twitter: @willia_am - http://www.williamdasilva.fr
ViVa Posted July 28, 2016 Posted July 28, 2016 Hm, someone can help me ? What I should type here : public $http_username = ''; public $http_password = ''; Also If you will record a video tutorial it will be great.
GTX Posted July 29, 2016 Posted July 29, 2016 With HTTP username and password you can call functions in MTA server via PHP. That needs an account on MTA server which must have special privileges. It is all explained on wiki. You don't need to fill those variables, but if you want to call function on server, you can just put username and password as arguments of SDK call function. 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
ViVa Posted July 29, 2016 Posted July 29, 2016 With HTTP username and password you can call functions in MTA server via PHP. That needs an account on MTA server which must have special privileges. It is all explained on wiki. You don't need to fill those variables, but if you want to call function on server, you can just put username and password as arguments of SDK call function. Thanks so much !
ztajti Posted November 20, 2018 Posted November 20, 2018 (edited) hi. How I can start/stop/restart the server with PHPSDK? The server running in windows server. Thanx. Edited November 20, 2018 by ztajti
Sarhan Posted June 12, 2019 Posted June 12, 2019 On 20/11/2018 at 14:56, ztajti said: hi. How I can start/stop/restart the server with PHPSDK? The server running in windows server. Thanx. You can use Open Game Panel , And run your server on it, and use API.... Discord : Sarhan #5990 Instagram : Sarhan_Host Twitter : Sarhan_Host Facebook : SarhanHost
Recommended Posts