mSelection problem.
#1

Hi,

I am using this include: https://sampforum.blast.hk/showthread.php?tid=407045.

This is my code:
Код:
												new skinlist[] =
												{
												 	1,
											 		2,
											 		3,
											 		23,
									 		 		26,
											 		27,
											 		29,
													32,
													33,
													34,
													35,
													37,
													42,
										 			45,
										 			52,
													59,
											 		60,
											 		61,
											 		62,
											 		68,
											 		70,
											 		72,
											 		73,
											 		78,
											 		81,
											 		82,
											 		94,
											 		95,
											 		96,
											 		97,
											 		98,
											 		99,
											 		100,
											 		101,
											 		111,
											 		112,
											 		113,
											 		119,
											 		124,
											 		125,
											 		126,
												 	127,
													128,
													132,
													133,
													135,
													137,
													146,
													147,
													153,
													154,
													155,
													158,
													159,
													160,
													161,
													162,
													164,
													165,
													167,
													171,
													177,
													181,
													187,
													188,
													200,
													204,
													206,
													209,
													210,
													212,
													213,
													230,
													234,
													235,
													236,
													239,
													240,
													241,
													242,
													247,
													248,
													250,
													254,
													255,
													258,
													259,
													261,
													264,
													268,
													272,
													289,
													290,
													291,
													294,
													295,
													299,
								 				};
								 				ShowModelSelectionMenuEx(playerid, skinlist, 20, "Select Skin", SELECTION_SKINS);
This is what I see in game.



Not to sure why why there is a gap in the bottom right, and why the other pages are not loading. There is more than 20 skins, therefore it should be more than 1 pages.

Kind Regards,
Sledgehammer.
Reply
#2

ShowModelSelectionMenuEx(playerid, skinlist, 20, "Select Skin", SELECTION_SKINS);

Quote:

ShowModelSelectionMenuEx(playerid, items_array[], item_amount, header_text[], extraid, Float:Xrot = 0.0, Float:Yrot = 0.0, Float:Zrot = 0.0, Float:mZoom = 1.0, dialogBGcolor = 0x4A5A6BBB, previewBGcolor = 0x88888899 , tdSelectionColor = 0xFFFF00AA)

Quote:

item_amount: Amount of items in items_array[] (For example: item_amount = 3 would show items_array[0-2])

Hence, replace your "20" with "sizeof (skinlist)"
Reply
#3

Thank you for apointing me in the correct direction. I had my code as this previously, however I started to experiment with it. Turns out I needed to edit the configuation within the include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)