warning 225: unreachable code
#4

The reason the warning shows up is because your if statements both end with a return, the code will never reach the "return 1;" at the bottom because of this.

pawn Код:
if(success)
    {
        SpamCheck[playerid] = GetTickCount();
    }
    if(!success)
        {
                SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Unknown command."); // no need to have "return" in front of this.
        }
    return 1;
Reply


Messages In This Thread
warning 225: unreachable code - by AnoTek - 02.07.2016, 23:06
Re: warning 225: unreachable code - by Golimad - 02.07.2016, 23:12
Re: warning 225: unreachable code - by DarkSkull - 03.07.2016, 00:22
Re: warning 225: unreachable code - by DTV - 03.07.2016, 00:57
Re: warning 225: unreachable code - by Nero_3D - 03.07.2016, 01:09
Re: warning 225: unreachable code - by DRIFT_HUNTER - 03.07.2016, 01:15

Forum Jump:


Users browsing this thread: 3 Guest(s)