Jump to content

Laxante101

Members
  • Posts

    90
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Laxante101

  1. Ваш компьютер заражен вирусом, и для своего правильного функционирования этому вирусу необходимо использовать этот файл: C:\Windows\rss\csrss.exe. Это вызывает что-то небезопасное, что приводит к удару переменного тока. Посмотрите результаты сканирования этого файла: https://www.virustotal.com/gui/file/3993aa1a1cf9ba37316db59a6ef67b15ef0f49fcd79cf2420989b9e4a19ffc2a Запустите полную антивирусную проверку и устраните любые инфекции (или полностью переустановите Windows, чтобы быть на 100% безопасным), а затем в будущем будьте более осторожны в Интернете, чтобы не получить еще один вирус на свой компьютер. "credits to @Dutchman101"
  2. In short, buy a host from the country where you want users to have better ping.
  3. true, also setElementData to store the password can be a resource consuming factor, especially if the generatePass function is called very frequently.
  4. If you can afford to buy an anticheat, this will solve your problem. If you don't, you can use anti-lua executors that are available on YouTube or on MTA mod sites.
  5. The problem is that you have (or had) " cFosSpeed " installed in C:\Program Files\cFosSpeed\ , and your latest kicks are caused by the cFosSpeed driver still running in C:\windows\system32\DRIVERS\cfosspeed6.sys Make sure to stop it completely before starting the MTA, or uninstall it completely. If you don't, the servers that planned to use SD #33 won't let you in.
  6. try looking in the device manager if your graphics card is being recognized,MTA diag download mtadiag and run it to show what it could be
  7. или это проблема с сервером, который говорит, но не с нами
  8. Laxante101

    Crash

    hi, offset = 0x000DFE92 is an error that is explained in the wiki https://wiki.multitheftauto.com/wiki/Famous_crash_offsets_and_their_meaning Bad sound mods or faulty audio driver/device. Use the unmodified GTA installation to check or update your audio drivers. The problem is usually caused by completely missing or empty/corrupted audio files (such as in \Rockstar Games\GTA San Andreas\audio > SFX or another subfolder), so you can alternatively restore a specific backup. Do not use 'compressed' GTA repacks for this reason, as the audio files may be cut off. modifications to your gta, such as overdose, shadow, moon, gta3, can cause these crashes due to poor otomization of the png or .img file, check this and download the gta with everything original here. I hope I helped.
  9. If Windows 8 is the latest one that appears to you, yes
  10. This error indicates an access violation, it could be several things. try activating the compatibility mode on top of the MTA .exe and right after opening a box activate the compatibility option, this could be a result of a DLL injection, and also try installing the most updated DirectX download here
  11. This seems to be a problem with your PC, when the problem is on the MTA a box appears with the problem, but this is not the case.
  12. Laxante101

    .:The BAR:.

    dude that was in 2013
  13. When the game closes by itself, does anything appear after the crash?
  14. No man, it's real he's simply using a remote control app or something, or he's playing samp
  15. Daha fazla satış elde etmek için discord oluşturmalısınız, mta'larını barındırmak isteyen birkaç kişi, sunucuları için mağaza aramak için discord'u kullanıyor, bu sadece bir öneri
  16. For this you will need to work with shaders, dff, txd, and so on, it is not an easy project
  17. Please specify your problem along with your pastebin, submitting the pastebin without the problem you are facing is a bit difficult to answer.
  18. Hi!, my name is Laxante101, I'm a .Lua developer, And today I will try to help you understand SQlite WHAT IS SQLITE? SQLite is a relational database management system (RDBMS) that does not require a separate server to function. Unlike database systems like MySQL or PostgreSQL, which need an active server process, SQLite is "embedded" (that is, the database is stored in a local file on disk), and operations with they are made directly within the program that uses it. Luckily for us, SQLite is already built into the MTA. This means that you can use SQLite databases directly in your MTA Lua codes without having to install anything additional "external" or configure an external database server. SQLite support is native to MTA, facilitating the use of databases for persistent storage of in game information. It is normally used on servers that do not use the login panel, they use SQlite so their information that would be saved in accounts is now saved in the .db file. Or on servers that don't use the original game money, they create other types of “money” like diamonds, stars which are all saved every day, well that's usually the case IMPORTANT DETAILS • Simplicity: Doesn't require anything other than a notepad • Portabilidade: Data is stored in a single .db file, which makes backup and migration easier. SQlite Global Structure Connect to Database with dbConnect Execute Queries using dbExec to modify data and dbQuery to recover data. 3. Manipulate Results with dbPoll and process the returned data. Connection to the Database the database file can be created automatically when connecting. The database file is saved in the server's root folder. local db = dbConnect("sqlite", "storage.db") or if you want to automatically create a folder for your file, or to save your .db files, if it is not created it creates it automatically, if it is created it just puts the file in the path. local db = dbConnect("sqlite", "db/storage.db") in this case the "db" folder will be created Creating Tablese data, you first need to create tables in the database. This is done using normal SQL commands like consulta local = [[ CREATE TABLE IF NOT EXISTS players ( id INTEGER PRIMARY KEY AUTOINCREMENT , name TEXT , score INTEGER ) ]] dbExec ( db , query ) Create a player table if it doesn't already exist In this case, we are creating a players table with three columns: ID Name Score Table Structure TEXT: STRINGS INTEGER: STORAGE NUMBERS REAL:STORES FLOATING POINT NUMBERS BLOB: STORES BINARY DATA (images, files). NULL: NIL VALUE If you don't understand what a string or Boolean values are, learn about data types VIDEO HERE Entering Data To add data to the database we use the SQL command INSERT INTO function AddPlayerLX1(name, score) local query = "INSERT INTO jogadores (name, score) VALUES (?, ?)" dbExec(db, query, name, score) end AddPlayerLX1("juninho", 100) The INSERT INTO command inserts a new player with the name "juninho" and score 100 into the players table. Note: The question marks (?) are placeholders for the values that will be passed to dbExec. This helps prevent SQL injection. Deleting Data To remove data from the database, we use the SQL DELETE command DELETE function DeletePlayerLX2(name) local query = "DELETE FROM players WHERE name = ?" dbExec(db, query, name) end DeletePlayerLX2("juninho") Error Handling It is important to verify that database operations were successful. MTA doesn't automatically return detailed errors other than "/debugscript (1, 2, 3)" so let's add checks. function AddPlayerLX3(name, score) local query = "INSERT INTO jogadores (name, score) VALUES (?, ?)" local sucess = dbExec(db, query, name, score) if sucess then outputDebugString("Sucess.") else outputDebugString("Error.") end end IF SUCESS THEN the success variable stores the result of the dbExec function. If the SQL command execution was successful (i.e. the player was added to the database), success will be true. If success is true, the code inside the if block will be executed. else If the success value is false (that is, if the player's insertion fails for some reason, such as an error in the database connection or SQL query), the code inside the else block will be executed Optimizations and Best Practices Optimizations are great for your day-to-day life as a developer, this makes your code more beautiful, less likely to give you server overload errors, etc... Remember to use dbFree to flush queries after use, especially if you are not using dbPoll. local LX4 = dbQuery(db, "SELECT * FROM players") dbFree(LX4) There are several ways to create clean code, I left just one of them Let's be clear: Since the SQLite database is a flat file, you can back it up by simply copying the .db file. To restore the database, simply replace the old file, this is a big advantage of using SQlite instead of using external databases. OBS: All codes were made based on an example of player name and id points, not made in a real project. (just to make it clear That's all I remembered, if there's anything I didn't make clear here you can say it and I'll edit it or respond to you
×
×
  • Create New...