10.10.2013, 08:00
Hi.
This is how it looks like:

The distances between the arrows and options is a bit messed up due to varying lengths, I can't do anything about that.
You can choose any option because it enables your cursor.
Functions:
All options must be included in the string 'string'. The separator (delimiter) must be ' | '.
So if you want to show these eight options:
ShowSelectMenu is self explanatory.
Callback:
* Option type returns these values:
OPTION_1, OPTION_2, OPTION_3, ...... OPTION_8.
Example:
[COMMAND FS] Download filterscript
[REQUIRED] Download include 'select_menu_definition' required for filterscript
Thanks, cheers, report any bugs you find.
This is how it looks like:

The distances between the arrows and options is a bit messed up due to varying lengths, I can't do anything about that.
You can choose any option because it enables your cursor.
Functions:
pawn Code:
native CreateSelectMenu( playerid, MENU_ID, string[] );
native ShowSelectMenu( playerid, MENU_ID );
native HideSelectMenu( playerid );
So if you want to show these eight options:
- Hello
- Hi
- Namaste
- Welcome
- XYZ
- ABC
- MY
- HI
pawn Code:
#define MY_MENU 1
CreateSelectMenu( playerid, MY_MENU, "Hello|Hi|Namaste|Welcome|XYZ|ABC|My|HI");
Callback:
pawn Code:
forward public OnPlayerClickSelectMenu( playerid, const MENU_ID, OPTION_TYPE );
OPTION_1, OPTION_2, OPTION_3, ...... OPTION_8.
Example:
pawn Code:
public OnPlayerClickSelectMenu( playerid, const MENU_ID, OPTION_TYPE )
{
if(OPTION_TYPE == OPTION_1)
{
SendClientMessage(playerid, -1, "You clicked option 1");
}
return 1;
}
[REQUIRED] Download include 'select_menu_definition' required for filterscript
Thanks, cheers, report any bugs you find.