So im quite new to Lua coding for Gmod but i mainly started to make an auto retry lua because whenever a server is full spamming Retry in console command gets annoying after a bit and the auto connect that steam has is useless is most cases.
Ive looked up on many posts and tutorials and this is as far as i have gotten to, when i test it i recieve errors saying " ')' expected near '=' "
Please help, here is my code so far:
local retry = false
LocalPlayer():ConCommand("connect 208.103.169.16")
repeat
if string.find("Server is full.") then
LocalPlayer():ConCommand("connect 208.103.169.16")
else
retry = true
end
until( retry = true )
end
If you are making a client-side file to connect to a server with that ip adress and want to spam "Server is full." as fast as you can, then you're probably in the right direction.
You should take a look at timers
Sorry, you need to Log In to post a reply to this thread.