Bars
Пользователь
- Регистрация
- 10 Июн 2017
- Сообщения
- 76
- Симпатии
- 4
- Пол
- Мужской
Привет! Добрые люди посмотрите пожалуйста в исходе почему при компилирование выдает вот такую ошибку:
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(295) : warning 201: redefinition of constant/macro (symbol "DontChange")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(298) : warning 201: redefinition of constant/macro (symbol "Grey")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(299) : warning 201: redefinition of constant/macro (symbol "Red")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(300) : warning 201: redefinition of constant/macro (symbol "Blue")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(321) : error 040: duplicate "case" label (value 2)
/hlds/web/www/amxxpc/work/scripting/Last.sma(18) : error 029: invalid expression, assumed zero
/hlds/web/www/amxxpc/work/scripting/Last.sma(33) : warning 213: tag mismatch
/hlds/web/www/amxxpc/work/scripting/Last.sma(35) : warning 213: tag mismatch
2 Errors.
Could not locate output file /hlds/web/www/amxxpc/work/plugins/Last.amx (compile failed).
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(295) : warning 201: redefinition of constant/macro (symbol "DontChange")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(298) : warning 201: redefinition of constant/macro (symbol "Grey")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(299) : warning 201: redefinition of constant/macro (symbol "Red")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(300) : warning 201: redefinition of constant/macro (symbol "Blue")
/hlds/web/www/amxxpc/bin/amxx-1.8.2/include/colorchat.inc(321) : error 040: duplicate "case" label (value 2)
/hlds/web/www/amxxpc/work/scripting/Last.sma(18) : error 029: invalid expression, assumed zero
/hlds/web/www/amxxpc/work/scripting/Last.sma(33) : warning 213: tag mismatch
/hlds/web/www/amxxpc/work/scripting/Last.sma(35) : warning 213: tag mismatch
2 Errors.
Could not locate output file /hlds/web/www/amxxpc/work/plugins/Last.amx (compile failed).
Код:
#include <amxmodx>
#include <nvault>
#include <colorchat>
#define PLUGIN "Last Maps"
#define VERSION "1.0"
#define AUTHOR "Letsplayer"
new memory[256]
new lastmaps
new map1[32], map2[32], map3[32], map4[32], map5[32]
public plugin_cfg()
{
lastmaps = nvault_open("lastmaps")
if (lastmaps == INVALID_HANDLE) set_fail_state("Error opening nVault!")
else
{
nvault_get(lastmaps, "LASTMAPS", memory, 255)
parse(memory, map1, 31, map2, 31, map3, 31, map4, 31, map5, 31)
}
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /last", "Show_PreviousMapList");
set_task(600.0, "Show_PreviousMapList_All", 1993, _,_,"b")
}
public Show_PreviousMapList(id)
ColorChat(id, GREY, "^4last: ^3%s^4, ^3%s^4, ^3%s^4, ^3%s^4, ^3%s^4.", map1,map2,map3,map4,map5 );
public Show_PreviousMapList_All()
ColorChat(0, GREY, "^4last: ^3%s^4, ^3%s^4, ^3%s^4, ^3%s^4, ^3%s^4.", map1,map2,map3,map4,map5 );
public plugin_end()
{
new lastmap[32];get_mapname(lastmap, 31);
formatex(memory, 255, "^"%s^" ^"%s^" ^"%s^" ^"%s^" ^"%s^"", map2, map3,map4,map5, lastmap)
nvault_set(lastmaps, "LASTMAPS", memory);nvault_close(lastmaps)
}