SA-MP Forums Archive
[ajuda] warning 225: unreachable code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda] warning 225: unreachable code (/showthread.php?tid=231833)



[ajuda] warning 225: unreachable code - Dark_xD - 26.02.2011

Pessoal me ajudem *
pawn Код:
//===============================================GPS===================================================================
{
    if (strcmp("/gps", cmdtext, true) == 0)
    {
        ShowPlayerDialog(playerid, NUTZ1, DIALOG_STYLE_LIST, "GPS- Brasil Master Games", "Prefeitura \nDepartamento Policial \n24-7 \nLoja de Armas", "Selecionar", "Nгo Aperte");
        return 1;
    }
    return 0;
}

//============================ й creu minha gente=======================================================================================
if(strcmp(cmd, "/creu", true) == 0 || strcmp(cmd, "/crйu", true) == 0) //<<< linha que da o warning 225
{
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s estб danзando o Crйu BMG OWNED ^^!.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ApplyAnimation(playerid,"CHOPPA","CHOPPA_back",4.1,1,1,1,1,1);
return 1;
}



Re: [ajuda] warning 225: unreachable code - CyNiC - 26.02.2011

Tire o return 0; dali, caso nгo tenha no final do callback OnPlayerCommandText, coloque lб, depois de todos os comandos.


Re: [ajuda] warning 225: unreachable code - Dark_xD - 26.02.2011

resolvido vlw