Заказать игровой сервер Контакты (заказать плагин/исправить ошибки/другое) Поиск

[ вход ]
[ последние сообщения ]

  • Страница 1 из 1
  • 1
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » Помогите исправить warning 213: tag mismatch
Помогите исправить warning 213: tag mismatch
rokfestr27 Дата: Среда, 17.09.2014, 21:56:35 | Сообщение # 1
Сообщений: 15
Репутация: 0 [ +/- ]
Когда компилирую у меня пишет warning 213: tag mismatch. Плагин все равно работает но хотелось бы что бы не было ошибок при компиляции. Помогите исправить буду очень признательный:
Код
#include <sourcemod>
#pragma semicolon 1

new Handle:g_hrul;
new Handle:g_hweb;
new Handle:g_hvk;

public Plugin:myinfo =  
{
  name = "blabla",
  author = "CAMPER",
  description = "",
  url = "http://eternal-game.ru/"
};

public OnPluginStart()
{
  g_hrul = CreateConVar("sm_motd_rules", "http://steamcommunity.com/groups/Eternal-Game", "", 0, false, 0, false, 0);
  g_hweb = CreateConVar("sm_motd_website", "http://eternal-game.ru/forum/", "", 0, false, 0, false, 0);
  g_hvk = CreateConVar("sm_motd_vkontakte", "http://vk.com/game_eternal", "", 0, false, 0, false, 0);
  RegConsoleCmd("sm_links", Command_Menu, "", 0);
  AutoExecConfig(true, "web_links", "sourcemod");
  return 0;
}

public Action:Command_Menu(i, args)
{
  Command_Cmd(i);
  return Action:3;
}

public OnClientPutInServer(client)
{
  Command_Menu(client, 0);
  return 0;
}

public Action:Command_Cmd(client)
{
  new Handle:nmenu = CreateMenu(Menu_Cmd, MenuAction:28);
  SetMenuTitle(nmenu, "Меню наших веб-ссылок!");
  AddMenuItem(nmenu, "sm_steam", "Наша steam группа", 0);
  AddMenuItem(nmenu, "sm_site", "Наш веб-сайт", 0);
  AddMenuItem(nmenu, "sm_vk", "Наша группа вконтакте", 0);
  SetMenuExitButton(nmenu, true);
  DisplayMenu(nmenu, client, 0);
  return Plugin_Handled;
}

public Menu_Cmd(Handle:nmenu, MenuAction:action, iClient, iMenuItem)
{
  new client = iClient;
  if (action == MenuAction:4)
  {
   switch (iMenuItem)
   {
    case 0:
    {
     Join(client, 0);
    }
    case 1:
    {
     Website(client, 0);
    }
    case 2:
    {
     Vkontakte(client, 0);
    }
    default:
    {
    }
   }
  }
  else
  {
   if (action == MenuAction:16)
   {
    CloseHandle(nmenu);
   }
  }
  return 0;
}

public Action:Join(client, args)
{
  decl String:ruls[256];
  GetConVarString(g_hrul, ruls, 255);
  ShowMOTDPanel(client, "Наша Steam Группа", ruls, 2);
  return Action:0;
}

public Action:Website(client, args)
{
  decl String:webst[256];
  GetConVarString(g_hweb, webst, 255);
  ShowMOTDPanel(client, "Наш веб-сайт", webst, 2);
  return Action:0;
}

public Action:Vkontakte(client, args)
{
  decl String:vkts[256];
  GetConVarString(g_hvk, vkts, 255);
  ShowMOTDPanel(client, "Наша группа вконтакте", vkts, 2);
  return Action:0;
}
 
хвостег Дата: Среда, 17.09.2014, 22:42:56 | Сообщение # 2
Сообщений: 161
Репутация: 53 [ +/- ]
замени на это
Код

   g_hrul = CreateConVar("sm_motd_rules", "http://steamcommunity.com/groups/Eternal-Game", "");
   g_hweb = CreateConVar("sm_motd_website", "http://eternal-game.ru/forum/", "");
   g_hvk = CreateConVar("sm_motd_vkontakte", "http://vk.com/game_eternal", "");


Сообщение отредактировал хвостег - Среда, 17.09.2014, 22:43:27
 
rokfestr27 Дата: Среда, 17.09.2014, 23:20:46 | Сообщение # 3
Сообщений: 15
Репутация: 0 [ +/- ]
спасибо большое
 
Форум » SourceMod >> CS:Source >> CSGO » Обсуждение » Помогите исправить warning 213: tag mismatch
  • Страница 1 из 1
  • 1
Поиск: