13.03.2013, 11:35
The error occurs because you have an if-else-statement where both results of the condition returns a value. This will stop the code, and make the return 1; unreachable, as the code will never get there. Simply fix by either removing the returns in the statements, or remove return 1;