warning 225: unreachable code
#4

Quote:
Originally Posted by zombieking
Посмотреть сообщение
Actually:
pawn Код:
CMD:giveall(playerid, params[])
{
    new value;
    if(PlayerInfo[playerid][pPadmin] == 0) return SendClientMessage( playerid, -1, "Tu ne pagrindinis administratorius!" );
    if(sscanf(params, "d", value) != 0) return  SendClientMessage(playerid, 0xFFFFFFFF, "Naudojimas /giveall [kiek]");
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            GivePlayerMoney(i, value);
        }
    }
    return 1;
}
The code above my post (by Dark Rain) would still output the warning
One of your problems was the indentation too
Thank you.
Reply


Messages In This Thread
warning 225: unreachable code - by Louris - 12.02.2013, 12:03
Re: warning 225: unreachable code - by DaRk_RaiN - 12.02.2013, 12:08
Re: warning 225: unreachable code - by zombieking - 12.02.2013, 12:11
Re: warning 225: unreachable code - by Louris - 12.02.2013, 12:15

Forum Jump:


Users browsing this thread: 2 Guest(s)