Jump to content

Search the Community

Showing results for tags 'php'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 17 results

  1. Hello, community! I searched on the forums how to get server information using PHP, but I get the error "Data is invalid" using following code: <?php class CSocketMTA { function CSocketMTA( $IP, $PORT = 22003 ) { if ( $socket = fsockopen( "udp://$IP", $PORT + 123, $errno, $errstr ) ) { stream_set_timeout( $socket, 1, 0 ); fwrite( $socket, "s" ); $data = fread( $socket, 16384 ); fclose( $socket ); if ( substr( $data, 0, 4 ) == "EYE1" ) { $data = substr( $data, 4 ); for ( $i = 0; $data != ""; $i++ ) { if ( substr( $data, 0, 2 ) == chr( 1 ) . "?" ) $dat
  2. Привет всем! Помогите, пожалуйста! Вопрос к тем, кто разбирается в PHP. Собственно вопрос в следующем: На сайте luac.mtasa.com в разделе API имеется руководство по обфускации Lua скриптов через сам Lua скрипт: local FROM="example.Lua" local TO="compiled.Lua" fetchRemote( "http://luac.mtasa.com/?compile=1&debug=0&obfuscate=3", function(data) fileSave(TO,data) end, fileLoad(FROM), true ) Предположим, на моём сайте лежит скрипт: $file_name = "my_script.Lua"; Как можно "скомпилировать" данный скрипт на PHP? Возможно, что через curl, но как его использовать в PH
  3. Hello everyone! Can you help me, please? Question to those who understand PHP. Actually the question is as follows: On the site luac.mtasa.com in the API section there is a guide to compile Lua scripts by the Lua script itself: local FROM= "example.Lua" local TO= "compiled.Lua" fetchRemote("http://luac.mtasa.com/?compile=1&debug=0&obfuscate=3", function(data) fileSave(TO, date) end, fileLoad(FROM), true) Suppose there is a script on my website: $file_name = "my_script.Lua"; How can I compile this script in PHP? Maybe it is possible by using curl, but how to
  4. Creación de PCU/UCP Los mismos se realizan a medida con o sin foro, generalmente los UCP se utilizan para los RolePlay dado que los conectamos a la base de datos del mismo haciendolos interactivos, convirtiendolos en UCP, pero también se pueden crear para RPG y demás modos de servidores. Todo en PHP y JavaScript. Demostración gratuita y vista del código por Teamviewer. Presupuesto sin cargo ningúno. Diseño original y responsive. Con o sin foro (estamos creando un foro propio desde 0, también se puede conectar a un SMF, MyBB, etc). Paneles administrativ
  5. السلام عليكم ورحمة الله وبركاتة كيف الحال ان شاء الله بخير اليوم انا بدي منكو بعض الافكار : اول فكرة ايش احط نوع المتغير الخاص بموضوع كامل text يعني انا بسوي موقع الان لما الناس تنشر توبك اخلي نوع التوبك ذا في قاعدة البيانات ولا في افضل الامر الأخر : الان انا بدي الناس تقدر تحط لايك الان الايك ويظهر عند الموضوع عدد الايكات زبط معي كل شي بس ضل قصة هي ابي يظهر مين الي حطو لايكات كيف اربطهم بالقاعدة الخاصة بالبيانات عقل يقول اسوي جدول للايكات لوحده واربطه مع الجدول التوبك وش قلتو ابي اشوف اذا في طرق افضل
  6. Hey! Would someone tell me how to do getPlayerPing for the php sdk library? I only managed to make a list of players on the server function listPlayer( ) local players = {} for k, player in ipairs( getElementsByType ("player") ) do local player = getPlayerName( player ) table.insert( players, player ) end return players end
  7. Thanks مشكورين صراحة وانا اسف على الرد المتاخر لظرف ما بس ممكن تشوفولي طلبي الثاني ------------ لما الشخص يدوس زر التسجيل ويرسل البيانات ينتقل للصفحة الرئيسية بس لما يتحقق الموقع من بيناتاته الشخصية <form action = 'Successful.php' method = 'POST' > ----------- ولكم مني خاص احترامي
  8. howdy.i just hosted my server "RP" and i dont know why i cant connect with Mysql.i tired to put Mysql.so and lib in Modules but it didnt work on windows works. If u dont know how to help me i can give my PHP because anything i have there ist special
  9. Buenas, tengo un pequeño inconveniente. Terminé de armar un login y necesito que este esté vinculado con el foro de mi servidor, necesito obtener datos del foro como por ejemplo ciertas estadísticas de los miembros del foro. No conozco mucho el lenguaje de programación php y quisiera saber que debería usar para obtener ciertos valores del foro a través de una consulta GET. Uso IPS de la comunidad. Por ejemplo, cómo puedo obtener o qué debo usar para recibir en mi servidor únicamente el nombre de la cuenta del miembro? Había hecho algo de esto: <?php $communityUrl = 'url
  10. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاتة انا سويت دورة عن كيف تسوي موقع دردشة .. وممكن يفيد بعضكم وسلام خير الختام
  11. Hello guys. I'm trying to use the PHP SDK from MTA: SA on my site but I can not. What I want to do is get the basic information from a server as a number of players online, whether it is password protected, or no password, whether online or offline. I just can not find any documentation to help me. Can someone help me?
  12. Swagy


    <?php require "mta_sdk.php"; $mtaServer = new mta( '', 22006); $resource = $mtaServer->getResource ( 'UDCupdates', $mtaServer ); $returns[] = $resource->call('addUpdate', $_POST['name'], $_POST['dev']); ?> ok I use this in the PHP file, don't mind the HTML file since it works fine, now I'll show you my MTA script local sql = executeSQLQuery function createTables () sql("CREATE TABLE IF NOT EXISTS updates (update TEXT, developer TEXT, date TIMESTAMP DEFAULT CURRENT_TIMESTAMP)") end addEventHandler("onClientGUIClick", root, createTables) function add
  13. Is it possible to make crypt function from php in lua? I connected IPS 4 by php script using PHP SDK but on Linux it returns array not JSON (so weird, returns JSON on Windows and array on Linux). It makes few casualities in my script so i decided to ask here. Is it possible to make php crypt function in MTA?
  14. Hello everyone! I want to present my little development - website template for servers, with information about your server online, embed statistic, and other Useful information. Based on PHP, bootstrap html/css framework, and seegaming servers API. Global update v1.1:- Now using API via JSON- New design- Easy to configure- Supporting API reviews- Support white, dark and blue themes- Parsing favicon, backgrounds, icons (if used default settings)- You can enable/disable players history graph / reviews page- Fast connect from browser to your server
  15. Hi, today i was trying to do function which displays players who are online on my website using php_sdk and i have problem with connection to server. HTTP port is opened, user who i'm using to connect has admin rights and it's not working. mta_sdk version 0.4 - downloaded from wiki mta this is php file on my website: <?php include( "mta_sdk.php" ); $mtaServer = new mta( "ip", 20145, "mta_php_sdk", "password" ); $resource = $mtaServer->getResource ( "php" ); $returns[] = $resource->call ( "getPlayersOnline" ); ?> And the error: Fatal error: Uncaugh
  16. Hi, i`m developing a TAG system with web integration and i need a little help. Have some function in MTA where i can load all mods inside a folder without specifying all names inside mtaserver.conf ?
  17. Hello everyone this is my first post please take it easy on me. here goes nothing. I followed xxmadexx's tutorial https://forum.mtasa.com/topic/74834-introduction-to-the-php-sdk/ It works and my site show the users. but I was wondering how do I go about exporting more information such as score and other information stored on the server. This is my server.lua file function getAllPlayersForWebsite ( ) local players = {} for k, player in ipairs( getElementsByType ("player") ) do local name = getPlayerName( player ) table.insert( players,
  • Create New...