їRecursion?
#4

Quote:
Originally Posted by ByMatt20030
View Post
So if i had bad luck, and the function always returns inside itself(in case of that code for example) because of the random value.. my server can crash. Ok...



Thank you a lot!
Not because of the random value...
Code:
    if(Random == 0) return Test();
Quote:
Originally Posted by Kaperstone
View Post
You're creating an infinite loop which might freeze your server until it reaches an end point or you close the server successfully.
The return Test(); part does create this infinite loop kaperstone is talking about.
Reply


Messages In This Thread
їRecursion? - by ByMatt20030 - 05.12.2017, 20:27
Re: їRecursion? - by Kaperstone - 05.12.2017, 20:33
Re: їRecursion? - by ByMatt20030 - 05.12.2017, 21:28
Re: їRecursion? - by jasperschellekens - 05.12.2017, 21:50
Re: їRecursion? - by chneubeul - 06.12.2017, 07:53
Re: їRecursion? - by adri1 - 06.12.2017, 09:29
Re: їRecursion? - by chneubeul - 06.12.2017, 11:15

Forum Jump:


Users browsing this thread: 1 Guest(s)