跳到主要内容

GetMenuColumnWidth

注意

This function was added in omp v1.1.0.2612 and will not work in earlier versions!

Description

Get the width of the one or two columns.

NameDescription
Menu:menuidThe ID of the menu.
&Float:column1WidthA float variable in which to store the column1 width in, passed by reference.
&Float:column2WidthA float variable in which to store the column2 width in, passed by reference.

Returns

This function always returns true.

Examples

new Float:column1Width, Float:column2Width;
GetMenuColumnWidth(menuid, column1Width, column2Width);

// Or you can only get column1 width
new Float:column1Width;
GetMenuColumnWidth(menuid, column1Width);
  • GetMenuPos: Get the x/y screen position of the menu.