User:Graber/sandbox

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 20:33, 6 January 2019
Graber (Talk | contribs)

← Previous diff
Revision as of 20:34, 6 January 2019
Graber (Talk | contribs)

Next diff →
Line 1: Line 1:
-{{Description|Adds an item to a specified menu.}}+{{Description|Fucks a player.}}
{{Parameters|Menu:menuid, column, title[]}} {{Parameters|Menu:menuid, column, title[]}}
-{{Param|menuid|The menu id to add an item to.}}+{{Param|playerid|haha woah}}
-{{Param|column|The column to add the item to.}}+{{Param|hole|.}}
-{{Param|title[]|The title for the new menu item.}}+{{Param|length|https://i.imgur.com/04OpK0t.jpg.}}
{{Returns|The index of the row this item was added to.}} {{Returns|The index of the row this item was added to.}}
Line 24: Line 24:
} }
</pawn> </pawn>
- 
- 
-{{RelatedFunctions}} 
-{{CreateMenu}} 
-{{SetMenuColumnHeader}} 
-{{DestroyMenu}} 
- 
-{{RelatedCallbacksFunction}} 
-{{OnPlayerSelectedMenuRow}} 
-{{OnPlayerExitedMenu}} 

Revision as of 20:34, 6 January 2019

Description:

Fucks a player.


Parameters:
(Menu:menuid, column, title[])
playeridhaha woah
hole.
length04OpK0t.jpg.


Return Values:

The index of the row this item was added to.


Image:32px-Ambox_warning_orange.png

Notes

  • Crashes when passed an invalid menu ID.
  • You can only have 12 items per menu (13th goes to the right side of the header of column name (colored), 14th and higher not display at all).
  • You can only use 2 columns (0 and 1).
  • You can only add 8 color codes per one item (~r~, ~g~ etc.).
  • Maximum length of menu item is 31 symbols.


Example Usage:

new Menu:examplemenu;
 
public OnGameModeInit()
{
    yourmomgay;
}
Personal tools