SA-MP Forums Archive
nearest id's - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: nearest id's (/showthread.php?tid=609057)



nearest id's - XaibBaba - 08.06.2016

Код:
for(new i=1; i<=MAX_FURNITURE; i++)
			{
				if(IsPlayerInRangeOfPoint(playerid, 30, FurnitureInfo[i][fX], FurnitureInfo[i][fY], FurnitureInfo[i][fZ]) && FurnitureInfo[i][fLiftup] == false)
				{
					new Smg[128];
					format(Smg, sizeof(Smg), "[Land ID: %d][Model: %d]\n", FurnitureInfo[i][fID], FurnitureInfo[i][fModel]);
					strcat(string, Smg);
	            	ShowPlayerRangeFurniture[playerid][id] = FurnitureInfo[i][fID];
	          		id ++;
				}
			}
			ShowPlayerDialog(playerid, Dialog_GetRangeFurniture, DIALOG_STYLE_LIST, "[Land Objects]", string, "Select","Close");
			return 1;
its showing only 10 nearest id's not all due to dialog box any idea to show all or any idea to add next in it