Ошибка при компиляции

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
9
Реакции
-2
Помог
1 раз(а)
Ошибка
//// MixCmd.sma
// D:\steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\MixCmd.sma(6) : error 010: invalid function or declaration
// D:\steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\MixCmd.sma(6) : error 062: number of operands does not fit the operator
// D:\steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\MixCmd.sma(6) : error 010: invalid function or declaration
// D:\steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\MixCmd.sma(6) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file D:\steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\compiled\MixCmd.amx (compile failed).
Компилятор
Локальный
Amx Mod X
Исходный код
#pragma semicolon 1
#pragma ctrlchar '\'

new Float:g_LastRestart[33];

bool:operator<(Float:,Float:)(Float:oper1, Float:oper2)
{
return 0 > floatcmp(oper1, oper2);
}

public plugin_init()
{
register_plugin("MixCMD by KANE", "2.0", "Alka");
register_clcmd("say /storage", "say_storage", 16, "", -1);
register_clcmd("say /inferno", "say_inferno", 16, "", -1);
register_clcmd("say /dust2", "say_dust2", 16, "", -1);
register_clcmd("say /dust2_hns", "say_dedust2hns", 16, "", -1);
register_clcmd("say /csassault", "say_assault", 16, "", -1);
return 0;
}

public say_storage(id)
{
if (!get_user_flags(id, 0) & 16)
{
return 0;
}
new Float:Time = halflife_time();
if (Time - g_LastRestart[id][0][0] < 10.00/*1092616192*/)
{
return 0;
}
g_LastRestart[id] = Time;
server_cmd("hns_hidetime 7; mp_roundtime 1.3; mp_forcecamera 2; hns_semiclip 1");
server_cmd("sv_restartround 1");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
set_hudmessage(255, 150, 0, 0.04, 0.47, 0, 6.00, 7.00, 0.10, 0.20, 4);
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
return 0;
}

public say_inferno(id)
{
if (!get_user_flags(id, 0) & 16)
{
return 0;
}
new Float:Time = halflife_time();
if (Time - g_LastRestart[id][0][0] < 10.00/*1092616192*/)
{
return 0;
}
g_LastRestart[id] = Time;
server_cmd("hns_hidetime 10; mp_roundtime 2.7; mp_forcecamera 2; hns_semiclip 0");
server_cmd("sv_restartround 1");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
set_hudmessage(255, 150, 0, 0.04, 0.47, 0, 6.00, 7.00, 0.10, 0.20, 4);
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
return 0;
}

public say_dust2(id)
{
if (!get_user_flags(id, 0) & 16)
{
return 0;
}
new Float:Time = halflife_time();
if (Time - g_LastRestart[id][0][0] < 10.00/*1092616192*/)
{
return 0;
}
g_LastRestart[id] = Time;
server_cmd("hns_hidetime 10; mp_roundtime 2.7; mp_forcecamera 2; hns_semiclip 1");
server_cmd("sv_restartround 1");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
set_hudmessage(255, 150, 0, 0.04, 0.47, 0, 6.00, 7.00, 0.10, 0.20, 4);
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
return 0;
}

public say_dedust2hns(id)
{
if (!get_user_flags(id, 0) & 16)
{
return 0;
}
new Float:Time = halflife_time();
if (Time - g_LastRestart[id][0][0] < 10.00/*1092616192*/)
{
return 0;
}
g_LastRestart[id] = Time;
server_cmd("hns_hidetime 10; mp_roundtime 3; mp_forcecamera 2; hns_semiclip 1");
server_cmd("sv_restartround 1");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
set_hudmessage(255, 150, 0, 0.04, 0.47, 0, 6.00, 7.00, 0.10, 0.20, 4);
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
show_hudmessage(0, "BY KANE");
return 0;
}

public say_assault(id)
{
if (!get_user_flags(id, 0) & 16)
{
return 0;
}
new Float:Time = halflife_time();
if (Time - g_LastRestart[id][0][0] < 10.00/*1092616192*/)
{
return 0;
}
g_LastRestart[id] = Time;
server_cmd("hns_hidetime 10; mp_roundtime 2.7; mp_forcecamera 2; hns_semiclip 0");
server_cmd("sv_restartround 1");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]");
client_print(0, print_chat, "[-Live Live Live! BY KANE-]")
Ошибка при компиляции
17 Сен 2018
там amx-modx не 1.8.3 а 1.8.1 по моему но как указать я незнал
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу