I prepared an event plugin to play on my awp map, but when compiling I get the following errors. Where am I going wrong?
Code:
plugin.sp(88) : warning 217: loose indentation
plugin.sp(89) : warning 217: loose indentation
plugin.sp(102) : warning 217: loose indentation
plugin.sp(103) : warning 217: loose indentation
plugin.sp(105) : warning 217: loose indentation
Code size: 8284 bytes
Data size: 3436 bytes
Stack/heap size: 16384 bytes
Total requirements: 28104 bytes
Code:
nextRoundGravity = true; \\\\\\\\\\\\\\\\\\\ Line 88
PrintToChatAll("[Sourcemod] The next round gravity will be raised. Don't forget to buy the spacesuit."); \\\\\\\\\\\\\\\\\\\\ Line 89
nextRoundKnife = true; \\\\\\\\\ Line 102
PrintToChatAll("[Sourcemod] The next round one will be just the knife. Watch your back"); \\\\\\\\\\\ Line 103
else \\\\\\\\\\\\\\\\\\\\\\\\\\\\ Line 105
Code:
void EventVote()
{
if (IsVoteInProgress())
{
return;
}
Menu menu = new Menu(Event_VoteMenu);
menu.SetTitle("Event List");
menu.AddItem("Gravity", "Gravity Round");
menu.AddItem("deagle", "Deagle Round");
menu.AddItem("knife", "Knife Event");
menu.AddItem("noevent", "x NO EVENT x");
menu.ExitButton = false;
menu.DisplayVoteToAll(13);
}
public int Event_VoteMenu(Menu menu, MenuAction action, int client, int param1)
{
if(action == MenuAction_End)
{
if(ResetTimer)
{
Timer_Event = CreateTimer(ConVar_TimeCFG.FloatValue, EventVoteStart, _, TIMER_FLAG_NO_MAPCHANGE);
PrintToChatAll("[Sourcemod] It will be voted again after %d seconds.", ConVar_TimeCFG.IntValue);
}
delete menu;
}
else
if(action == MenuAction_VoteEnd)
{
char Item[32];
menu.GetItem(param1, Item, sizeof(Item));
if(StrEqual(Item, "Gravity"))
{
delete Timer_Event;
nextRoundGravity = true;
PrintToChatAll("[Sourcemod] The next round gravity will be raised. Don't forget to buy the spacesuit.");
}
else
if(StrEqual(Item, "deagle"))
{
delete Timer_Event;
nextRoundDeagle = true;
PrintToChatAll("[Sourcemod] The next round will be the deagle tour. Prepare yourself");
}
else
if(StrEqual(Item, "knife"))
{
delete Timer_Event;
nextRoundKnife = true;
PrintToChatAll("[Sourcemod] The next round one will be just the knife. Watch your back");
}
else
if(StrEqual(Item, "noevent"))
{
delete Timer_Event;
ResetTimer = true;
PrintToChatAll("[Sourcemod] Nobody wants activity. Continue the normal game!");
}
}
}