17.06.2012, 12:11
i made a drink command and i get unreachablecode 2 wrning with unreachable
pawn Код:
if(strcmp(cmd, "/drink", true) == 0)
{
if(IsAtBar(playerid))
{
if(GetPlayerDrunkLevel(playerid) <= 20000)
{
ShowPlayerDialog(playerid,Dialog_Bar,DIALOG_STYLE_LIST,"{278227}Bar","Apa\nFanta\nBere\nTuica\nSampanie\nVodka\nLichior","Selecteaza","Inchide");
return 1;
{
SendClientMessage(playerid, COLOR_WHITE, "Bartender: I don't know that Drink Name.");
return 1;
}
format(string, sizeof(string), "* %s bea %s de la pahar.", sendername,Dialog_Bar);
ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Numai poti sa bei");
return 1;
}
}
}