max amount [+rep]
#4

Quote:
Originally Posted by iBots
Посмотреть сообщение
give me example and by the way when i do it,lets say i want to show all of the furnitures ,max furnitures per house is 250,so i will have to loop 250 and do Furniture[houseid][i]
I would recommend the limit being 80 as there's no need for anything more in regards to furnishing a house.

If the player owns the house, say he wants to edit/display furniture ect. you would simply need to loop through the array:

for (new i = 0; i < MAX_PER_HOUSE; i++)
{
if (IsValidDynamicObject (Furniture[playerid][i][id]))
{
....
}
}

On mobile sorry.
Reply


Messages In This Thread
max amount [+rep] - by iBots - 16.04.2015, 23:24
Re: max amount [+rep] - by iiNzTicTx - 16.04.2015, 23:40
Re: max amount [+rep] - by iBots - 16.04.2015, 23:53
Re: max amount [+rep] - by iiNzTicTx - 17.04.2015, 08:32
Re: max amount [+rep] - by iBots - 17.04.2015, 08:40
Re: max amount [+rep] - by fuckingcruse - 17.04.2015, 08:59
Re: max amount [+rep] - by ATGOggy - 17.04.2015, 09:19
Re: max amount [+rep] - by Threshold - 17.04.2015, 10:51

Forum Jump:


Users browsing this thread: 6 Guest(s)