
Egor_Varaksa
Members-
Posts
31 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Egor_Varaksa
-
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 understand how to round off certain elements with this. Can you explain?
-
How can I round off dgsCreateButton and dgsCreateEdit?
-
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?
-
How can I make it so that only English letters and numbers can be entered in the guiCreateEdit field?
-
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?
-
How can I get real time on the client side from the server side?
-
Thanks. How do I make it show a maximum of 23 hours and 59 minutes? https://imgur.com/a/ARAK9Fh
-
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.
-
Add the setServerName function. If I'm not mistaken, it was there before, but why was it removed?
- 1 reply
-
- 1
-
-
Well, how do I find out which client the player uses?
-
How to prohibit logging in to the server from a custom client?
-
How to make sure that it does not fall into the ground?
-
I do not understand. Can you please write all the code that should turn out in the end?
-
Okay, thanks
-
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
-
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?
-
Thanks, but now if you quickly pass the marker the barrier will remain open
-
It didn't help. Maybe you can somehow make the object not rotate more than 90 degrees?