Jump to content

SpecT

Members
  • Posts

    656
  • Joined

  • Days Won

    9

Everything posted by SpecT

  1. Kind of. You won't need the minutes and seconds variables. And you will have to rename the "hours" var to "hour". As you can see in the if operators it compares the "hour" var with numbers.
  2. Hello, It looks like the variable "hour" is not declared or has no value set (at least in the code you shared). This is why it throws you an error that it can't compare "nothing" with a number. You will have to use getTime (game current time) or getRealTime (server/client current time).
  3. Hello, The error you get is to inform you that probably the password used to log into "root" user is incorrect. You should check what the password of the root user is (maybe default?) and if you can't find/remember it you will have to reset it.
  4. SpecT

    (SD #11 EJFA) Help

    @Enanebrio You still have it running even twice! Please make sure you look for injector.exe and not inyector.exe !
  5. SpecT

    Crash problem

    Welcome to the Forums! This seems to be an Nvidia driver problem. Download the latest drivers for your GPU and in the setup make sure to tick the "perform a clean installation" box.
  6. SpecT

    AC # 4 86L8

    Welcome to the Forums! Could you please post the logs from MTADiag here.
  7. SpecT

    (SD #11 EJFA) Help

    If it's logged from MTADiag then you should be able to find to process in Task manager. Did you try the following instructions? (From the other thread) Open Task Manager, go to Details tab and look for a process called "injector.exe". You have to select it and then stop it with the button End task. If you want to stop it from starting up again (if it starts up with your PC) you can right-click on it and click the "Open file location" option to go to its directory and rename/delete it. Of course you will have to stop it first before you rename or delete it!
  8. SpecT

    (SD #11 EJFA) Help

    Welcome to the Forums! Your situation seems to be similar to this one. From the logs there is a process called injector.exe which is probably triggering the anti-cheat system. Try with stopping the process and try again to join a server. If this is the cause of this error just delete the file after locating it (if you need help with that can use the topic below to see the instructions).
  9. Welcome to the Forums! * Your thread has been moved to the Scripting section. On-topic: You get errors because you don't receive a result. Your syntax for dbQuery seems to be wrong. The first argument must be the SQL connection and the 2nd the query (string). With dbPoll you take the result from this query (dbQuery). Please, take a look at the documentation of dbPoll. There you can find many examples how to use it.
  10. SpecT

    Error Resolution

    You said this problem started happening after updating to the most recent update. You can try with a "nightly" version of MTA. https://nightly.multitheftauto.com/ If it doesn't help please post the logs from MTADiag.
  11. SpecT

    HELP

    Open Task Manager, go to Details tab and look for a process called "injector.exe". You have to select it and then stop it with the button End task. If you want to stop it from starting up again (if it starts up with your PC) you can right-click on it and click the "Open file location" option to go to its directory and rename/delete it. Of course you will have to stop it first before you rename or delete it! Don't hesitate to ask if there is something you can't understand.
  12. SpecT

    HELP

    Hello, This error means that you are running a trainer while MTA is running. Don't run it next time you start MTA. From the MTADiag logs I see there is a process called injector.exe which is probably the reason why the anti-cheat triggers.
  13. Hey, An idea is to use setElementData in the admin panel with the state of the panel. And in your panel you can make a check (getElementData) whether the admin panel is opened or not. If it's opened => ignore the clicks.
  14. Hey, It's more lika a warning than an error. It tells you that this event handler is already existing. To prevent it use removeEventHandler before the addEventHandler. PS: You might need better organization of the work of this function cuz it appears that it gets called before the operations in it are done. The event handler is getting removed after 30 seconds and the function gets called before this time passes.
  15. Hey, It doesn't make sense to always return true even as you said when you replace the true with false. Could you show the part where you check what the function returns. Also there is no need of all those elses. function isPlayerBanned(player) if (player) then local serial = getPlayerSerial(player); local qh = dbQuery(con, "SELECT * FROM bans WHERE serial=? AND expiration > CURRENT_TIME()", serial); local bans = dbPoll(qh, 500); if (bans) then if (#bans > 0) then return true; end end end return false; end
  16. Welcome to the Forums! It could be GPU drivers problem. Please run MTADiag and paste here the coppied URL. In the meantime you can try with a clean install of latest drivers for your GPU.
  17. Unfortunatelly I can't find any leftover from the MTADiag report. Probably the uninstaller didn't remove everything. The driver of NetLimiter is located in C:\Windows\System32\drivers called nldrv.sys Check if you have it and delete it.
  18. Welcome to the Forums! Please reply with a report from MTADiag. There might be a service/process left running which triggers the detection.
  19. Client side: function endVol(soundNum) local position = guiScrollBarGetScrollPosition(Cock2)/100 muzik = playSound("sounds/"..tostring(soundNum)..".mp3") setSoundVolume(muzik, position) end addEvent("endvol",true) addEventHandler("endvol", root, endVol) Server side: function muzikS() local soundNum = math.random(1,37) triggerClientEvent( root,"endvol", resourceRoot, soundNum ) end addEventHandler( "onRoundFinish", root, muzikS ) It will be helpful to you to read the documentation for the function triggerClientEvent so you will know what argument is for what in future uses. ?
  20. Hey, Generate the random number from the server side and pass it to all the clients through the triggerClientEvent. This way everyone will hear the same sound.
  21. Okay, so something like this: local bankNumbers = {} function getAllBankNumbers() -- loop through all accounts and get their bank numbers and put them in the table bankNumbers end function reg(player) local account = getPlayerAccount (player) local bankNum while (in_table(bankNumbers, bankNum)) do -- if the bank number is found in the table keep getting new combination bankNum = getRandomBankNum() end table.insert(bankNumbers, bankNum) -- insert the new bank number setAccountData(account, "bank", bankNum) end addEvent("regbank",true) addEventHandler("regbank",getRootElement(),reg) function getRandomBankNum() local bankNum = "" for i=1,6 do bankNum = bankNum..tostring(math.random(0,9)) end return tonumber(bankNum) end -- Util to use to find if a value is already in a table function in_table(table, value) for k, v in pairs(table) do if v == value then return true, k end end return false end Note: You will have to make the getAllBankNumbers function yourself with a for loop through all accounts and put every bank number into that table. It will need to run on resource start tho!
  22. Hey, What exactly are you struggling with? For the 6 digits you generate 6 digits with math.random. You can store all the used bank numbers in a table and check if the combination matches from one of the records in the table. If there is a match => regenerate new combination and etc..
  23. SpecT

    Error CC23

    Welcome to the Forums! Download and run this file: https://mirror.multitheftauto.com/mtasa/utils/servicing.bat When it's done restart your PC and check if the problem persists.
  24. Welcome to the Forums! Most of the times this error occurs because of corrupted dll files in the MTA directory. It's possible to have a virus on your PC which modifies them and this causes the problem. Install an anti-virus software and your PC and do a full scan. Remove the infected files, reinstall MTA and try again.
×
×
  • Create New...