Help me here
#8

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
The error means that the piece of code will never possibly be reached. The last return in that code can never be reached, because there is no logical path to where it can be reached, the code is always stopped before it. So either remove it, or else re-structure the code. Additionally you have two un-needed brackets in the snippet.
There really was no reed to write all that... Lol.
@OP :
If you use "else", you shouldn't really be using return 1; at the end, because ELSE includes EVERYTHING other than the IF earlier stated.
Reply


Messages In This Thread
Help me here - by Soumi - 18.03.2011, 17:51
Re: Help me here - by Roomeo - 18.03.2011, 17:55
Re: Help me here - by Roomeo - 18.03.2011, 17:56
Re : Help me here - by Soumi - 18.03.2011, 19:17
Re: Help me here - by Markx - 18.03.2011, 20:12
Re: Help me here - by alpha500delta - 18.03.2011, 20:13
Re: Help me here - by JaTochNietDan - 18.03.2011, 20:15
Re: Help me here - by maramizo - 18.03.2011, 21:20
Re: Help me here - by JaTochNietDan - 18.03.2011, 21:28
Re: Help me here - by maramizo - 18.03.2011, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)