diff --git a/plugins/include/adt_array.inc b/plugins/include/adt_array.inc index 5e314110..f13a1e1a 100644 --- a/plugins/include/adt_array.inc +++ b/plugins/include/adt_array.inc @@ -301,7 +301,7 @@ methodmap ArrayList < Handle { public SwapAt() = SwapArrayItems; public FindString() = FindStringInArray; public FindValue() = FindValueInArray; - property int Size { + property int Length { public get() = GetArraySize; } }; diff --git a/plugins/include/mapchooser.inc b/plugins/include/mapchooser.inc index 0b39e8cb..1b89fdeb 100644 --- a/plugins/include/mapchooser.inc +++ b/plugins/include/mapchooser.inc @@ -98,7 +98,7 @@ native bool:EndOfMapVoteEnabled(); * Called when mapchooser removes a nomination from its list. * Nominations cleared on map start will not trigger this forward */ -forward void OnNominationRemoved(char[] map, int owner); +forward void OnNominationRemoved(const char[] map, int owner); /** * Called when mapchooser starts a Map Vote. diff --git a/plugins/include/menus.inc b/plugins/include/menus.inc index 8838e69b..7c9551a4 100644 --- a/plugins/include/menus.inc +++ b/plugins/include/menus.inc @@ -453,7 +453,7 @@ native GetMenuOptionFlags(Handle:menu); * @noreturn * @error Invalid Handle. */ -native SetMenuOptionFlags(Handle:menu, flags); +native void SetMenuOptionFlags(Handle:menu, flags); /** * Returns whether a vote is in progress. @@ -562,24 +562,29 @@ methodmap Menu < Handle { public DisplayVote() = VoteMenu; public DisplayVoteToAll() = VoteMenuToAll; - public SetPagination() = SetMenuPagination; property int Pagination { public get() = GetMenuPagination; + public set(int value) { + SetMenuPagination(this, value); + } } - - public SetOptionFlags() = SetMenuOptionFlags; property int OptionFlags { public get() = GetMenuOptionFlags; + public set() = SetMenuOptionFlags; } - - public SetExitButton() = SetMenuExitButton; property bool ExitButton { public get() = GetMenuExitButton; + public set(bool value) { + SetMenuExitButton(this, value); + } } - public SetExitBackButton() = SetMenuExitBackButton; property bool ExitBackButton { public get() = GetMenuExitBackButton; + public set(bool value) { + SetMenuExitBackButton(this, value); + } } + public SetNoVoteButton() = SetMenuNoVoteButton; public SetVoteResultCallback() = SetVoteResultCallback;