Author
|
Message
|
New Member
|
07-30-2023
, 16:46
Help me pls
|
#1
|
I downloaded the deathrun lite plugin and I have an error, the menu does not come out with a pass To, that's what it gives out when compiling
warning 209: function has explicit 'int' tag but does not return a value
public int MenuTerroristItems(Menu hMenu, MenuAction action, int iClient, int iItem)
{
switch(action)
{
case MenuAction_End: delete hMenu;
case MenuAction_Cancel:
{
switch(iItem)
{
case MenuCancel_Interrupted: CreateTimer(0.0, TimerReturnMenu, UID(iClient));
case MenuCancel_Timeout: CGOPrintToChatAll("%s {LIGHTBLUE}Время вышло, террорист ничего не выбрал!\n{RED}* {LIGHTBLUE}Ловушки деактивированы!", g_sTag);
/*case MenuCancel_Exit:
{
FormatEx(sBuffer, sizeof(sBuffer), "{LIGHTBLUE}Террорист решил ничего не выбирать\n{RED}* {LIGHTBLUE}Ловушки деактивированы!");
UseItemMenu(sBuffer, true);
}*/
}
}
case MenuAction_Select:
{
switch(iItem)
{
case 0:
{
CGOPrintToChatAll("%s {LIGHTBLUE}Террорист решил играть с ловушками...", g_sTag);
g_bBlockButtons = false;
}
case 1: CGOPrintToChatAll("%s {LIGHTBLUE}Террорист решил пропустить всех игроков...", g_sTag);
case 2: CGOPrintToChatAll("%s {LIGHTBLUE}Террорист решил пропустить всех игроков...\n{RED}* {LIGHTBLUE}Хочет сыграть в рулетку!", g_sTag);
}
}
}
}
|
|
|
|