- Автор темы
- #1
Код до ошибки:
После изменений и выдает: warning 225: unreachable code
Pawn:
if(pickupid == newspickup)
{
if(PI[playerid][pPayDayHad] < 10) return ErrorMessage(playerid, "Сперва отыграйте 10-ть часов");
if(GetPVarInt(playerid, "Player_ID_Banner") <= 0) SetPVarInt(playerid, "Player_ID_Banner", 0), SetPVarInt(playerid, "Player_Number_Banner", 1);
if(GetPVarInt(playerid, "Player_ID_Banner") < 63)
{
NextBanner(playerid, GetPVarInt(playerid, "Player_ID_Banner"));
TogglePlayerControllable(playerid, false);
SetPVarInt(playerid, "trueBannerVibor", 1);
for(new i; i != 7; i++) TextDrawShowForPlayer(playerid, Banner_TextDraw[i]);
PlayerTextDrawShow(playerid, TextDraw_Banner[playerid]);
string = "";
format(string, 24, "-----------%d-----------", GetPVarInt(playerid, "Player_Number_Banner"));
PlayerTextDrawSetString(playerid, TextDraw_Banner[playerid], string);
SelectTextDraw(playerid, 0xFFFFFFAA);
SetPVarInt(playerid, #icon_banner, true);
}
return 1;
}
После изменений и выдает: warning 225: unreachable code
Pawn:
if(pickupid == newspickup) return ShowPlayerDialog(playerid, 10099, DIALOG_STYLE_MSGBOX, ""SERVER"Аренда баннера", ""WHITE"Вы уверены, что хотите перейти к аренде баннера?", "Да", "Выход");
{
if(PI[playerid][pPayDayHad] < 10) return ErrorMessage(playerid, "Сперва отыграйте 10-ть часов");
if(GetPVarInt(playerid, "Player_ID_Banner") <= 0) SetPVarInt(playerid, "Player_ID_Banner", 0), SetPVarInt(playerid, "Player_Number_Banner", 1);
if(GetPVarInt(playerid, "Player_ID_Banner") < 63)
{
NextBanner(playerid, GetPVarInt(playerid, "Player_ID_Banner"));
TogglePlayerControllable(playerid, false);
SetPVarInt(playerid, "trueBannerVibor", 1);
for(new i; i != 7; i++) TextDrawShowForPlayer(playerid, Banner_TextDraw[i]);
PlayerTextDrawShow(playerid, TextDraw_Banner[playerid]);
string = "";
format(string, 24, "-----------%d-----------", GetPVarInt(playerid, "Player_Number_Banner"));
PlayerTextDrawSetString(playerid, TextDraw_Banner[playerid], string);
SelectTextDraw(playerid, 0xFFFFFFAA);
SetPVarInt(playerid, #icon_banner, true);
}
return 1;
}