View Single Post
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-25-2016 , 08:42   Re: [L4D2] Problems with the menu display
Reply With Quote #9

Quote:
Originally Posted by Grey83 View Post
P.S. The old version without 'case MenuAction_DisplayItem:{...}' had the same problems
But you added it in this callback right?
Quote:
Originally Posted by Grey83
Code:
case MenuAction_DisplayItem:         {             if(param == 6)             {                 char buffer[64];                 Format(buffer, sizeof(buffer), "%s", cRelative[iMWorld[client]]);                 return RedrawMenuItem(buffer);             }         }
Quote:
Originally Posted by Benoist3012
You should add a debug code here, and print the buffer in chat
if(param == 6)
{
char buffer[64];
Format(buffer, sizeof(buffer), "%s", cRelative[iMWorld[client]]);
return RedrawMenuItem(buffer);
}
because if it's empty then that would explain why your vote has no items.
__________________

Last edited by Benoist3012; 08-25-2016 at 08:43.
Benoist3012 is offline