Jump to content

Egor_Varaksa

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Egor_Varaksa

  1. I use this guiSetProperty function(edit, "ValidationString", "^[A-Za-z_0-9]+$") but there is a problem when I want to delete the entire string, I can't delete the first character entered in the string.
  2. Hello, I use this so that only the Latin alphabet and numbers can be entered in the input field. What should I do to be able to enter the underscore character "_"? addEventHandler("onClientGUIChanged", edit, function(element) guiSetText ( edit, string.gsub (guiGetText(edit), "%W", "")) end)
  3. I don't understand how to round off certain elements with this. Can you explain?
  4. Egor_Varaksa

    DGS

    How can I round off dgsCreateButton and dgsCreateEdit?
  5. I don't have the code. I want to make it so that when a player logs into an account, the date and time of his login are recorded in the database (internal.db). I want the date to be recorded a certain number of times and then start being overwritten. Let's say a player logged in on 01.03.2022, then he logged in on 02.03.2022, then 03.03.2022, and when he logs in on 04.03.2022, the date 01.03.2022 is deleted
  6. How to make 3 lines written to the database, and then they started to be overwritten Example: 06.03.2022\n 05.03.2022\n 04.03.2022 And then the bottom line was deleted and the previous one was written in its place Example: 07.03.2022\n 06.03.2022\n 05.03.2022
  7. Do I need to create a table with forbidden characters? If so, it will take a long time. Is it possible, on the contrary, to create a table with only allowed characters?
  8. How can I make it so that only English letters and numbers can be entered in the guiCreateEdit field?
  9. If I want the time to always be updated down to the second, I need to call the triggerServerevent event every second? Will there be a load on the server?
  10. How can I get real time on the client side from the server side?
  11. Thanks. How do I make it show a maximum of 23 hours and 59 minutes? https://imgur.com/a/ARAK9Fh
  12. Egor_Varaksa

    Timer

    Hello, how can I make it so that when I enter the command /timer 3600, the timer is displayed for the players, and the time 1 hour 00 minutes 00 seconds is displayed on it, and then 59 minutes 59 seconds and so on. In short, I only need the remaining time to be displayed.
  13. Add the setServerName function. If I'm not mistaken, it was there before, but why was it removed?
  14. Well, how do I find out which client the player uses?
  15. How to prohibit logging in to the server from a custom client?
  16. How to make sure that it does not fall into the ground?
  17. I do not understand. Can you please write all the code that should turn out in the end?
  18. I save all my bank accounts to the database (internal.bd). I don't understand how to make it so that other players can't be given a number that is already recorded in the database function reg(player) local account = getPlayerAccount (player) local num_1 = math.random(0,9) local num_2 = math.random(0,9) local num_3 = math.random(0,9) local num_4 = math.random(0,9) local num_5 = math.random(0,9) local num_6 = math.random(0,9) local num_score = num_1..num_2..num_3..num_4..num_5..num_6 setAccountData(account, "bank", num_score) end addEvent("regbank",true) addEventHandler("regbank",getRootElement(),reg) Here is the code
  19. Hello, I want the player to be given a random 6-digit number when registering with the bank, and that this number does not fall to anyone else. How do I do this?
  20. Thanks, but now if you quickly pass the marker the barrier will remain open
  21. It didn't help. Maybe you can somehow make the object not rotate more than 90 degrees?
×
×
  • Create New...