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.
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)
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
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
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?
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?
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.