- Регистрация
- 12 Авг 2019
- Сообщения
- 172
- Лучшие ответы
- 0
- Репутация
- 2
Всем привет!
Помогите исправить ошибки
Ошибки выдает на другие строки, но если убрать вот этот код ( я его добавил ), то ошибок не будет.
Помогите, пожалуйста
Помогите исправить ошибки
HTML:
(13602) : error 079: inconsistent return types (array & non-array)
(13603) : error 079: inconsistent return types (array & non-array)
(13622) : error 079: inconsistent return types (array & non-array)
(13625) : error 079: inconsistent return types (array & non-array)
(13630) : error 079: inconsistent return types (array & non-array)
(13659) : error 079: inconsistent return types (array & non-array)
(13700) : error 079: inconsistent return types (array & non-array)
(13867) : error 079: inconsistent return types (array & non-array)
(13885) : error 079: inconsistent return types (array & non-array)
(13907) : error 079: inconsistent return types (array & non-array)
(13925) : error 079: inconsistent return types (array & non-array)
(14079) : error 079: inconsistent return types (array & non-array)
(14085) : error 079: inconsistent return types (array & non-array)
(14091) : error 079: inconsistent return types (array & non-array)
(14097) : error 079: inconsistent return types (array & non-array)
(14103) : error 079: inconsistent return types (array & non-array)
(14109) : error 079: inconsistent return types (array & non-array)
(14115) : error 079: inconsistent return types (array & non-array)
(14121) : error 079: inconsistent return types (array & non-array)
(14127) : error 079: inconsistent return types (array & non-array)
(14133) : error 079: inconsistent return types (array & non-array)
(14139) : error 079: inconsistent return types (array & non-array)
(14152) : error 079: inconsistent return types (array & non-array)
(14159) : error 079: inconsistent return types (array & non-array)
(14165) : error 079: inconsistent return types (array & non-array)
(14171) : error 079: inconsistent return types (array & non-array)
Compilation aborted.
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
PHP:
case D_APANEL_1:
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 1:
{
for(new i = 0; i < 100; i++) SendClientMessageToAll(COLOR_WHITE, "");
new string[64];
format(string, sizeof(string), "[A] %s[%d] очистил чат", PI[playerid][pName], playerid);
SendAdminMessage(string, 0xAFAFAFAA);
}
case 2:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 3:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 4:
{
if(killused[playerid] == 1) return SendClientMessage(playerid, COLOR_BLUE, "Вы отключили информацию о убийствах."), killused[playerid] = 0;
killused[playerid] = 1;
SendClientMessage(playerid, COLOR_BLUE, "Вы включили информацию о убийствах.");
}
case 5:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 6:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 7:
{
if(AdminInfo[playerid] == 1) return SendClientMessage(playerid, COLOR_BLUE, "Вы выключили информацию о входах/выходах."), AdminInfo[playerid] = 0;
AdminInfo[playerid] = 1;
SendClientMessage(playerid, COLOR_BLUE, "Вы включили информацию о входах/выходах");
}
case 8:
{
if(AdminInfo[playerid][admSmsEars] == 1) return SendClientMessage(playerid, COLOR_BLUE, "Вы выключили прослушку SMS"), AdminInfo[playerid][admSmsEars] = 0;
AdminInfo[playerid][admSmsEars] = 1;
SendClientMessage(playerid, COLOR_BLUE, "Вы включили прослушку SMS");
}
case 9:
{
for(new i = 1; i < MAX_VEHICLES; i++)
{
if(!IsVehicleOccupied(i)) SetVehicleToRespawn(i);
}
new fmt_msg[128];
format(fmt_msg, sizeof fmt_msg, "[A] %s[%d] зареспавнил весь транспорт", PI[playerid][pName], playerid);
SendAdminMessage(fmt_msg, 0xAFAFAFAA);
}
case 10:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 11:
{
switch(event)
{
case false:
{
Send(playerid, COLOR_LIME, "Вы включили телепорт на мероприятие (ООС)");
static const fmt_msg[] = "[A] %s [%d] открыл телепортацию на мероприятие (ООС): /gotomp";
new string[sizeof(fmt_msg)+(-2+MAX_PLAYER_NAME)+(-2+3)];
format(string, sizeof(string), fmt_msg, PI[playerid][pName], playerid);
SendAdminMessage(string, COLOR_YELLOW);
GetPlayerPos(playerid, event_teleport_coord[0], event_teleport_coord[1], event_teleport_coord[2]);
event = true;
}
case true:
{
Send(playerid, COLOR_LIME, "Вы закрыли телепорт мероприятие (ООС)");
static const fmt_msg[] = "[A] %s[%d] закрыл телепортацию на мероприятие (ООС)";
new string[sizeof(fmt_msg)+(-2+MAX_PLAYER_NAME)+(-2+3)];
format(string, sizeof(string), fmt_msg, PI[playerid][pName], playerid);
SendAdminMessage(string, COLOR_YELLOW);
event = false;
}
}
}
case 12:
{
Send(playerid, COLOR_LIME, "Вы прекратили мероприятие (ООС)");
static const fmt_msg[] = "[A] %s[%d] прекратил мероприятие (ООС)";
new string[sizeof(fmt_msg)+(-2+MAX_PLAYER_NAME)+(-2+3)];
format(string, sizeof(string), fmt_msg, PI[playerid][pName], playerid);
SendAdminMessage(string, COLOR_GREY);
event = false;
}
case 13:
{
SendClientMessage(playerid, COLOR_BLUE, "В разработке");
}
case 14:
{
ShowPlayerDialog
(
playerid, DIALOG_APANEL_WEATHER, DIALOG_STYLE_INPUT,
"{ffcc00}Смена погоды",
"Введите ID погоды:",
"Далее", "Отмена"
);
}
}
}
}