Help (Explain) About System
#6

You can create an array just as you have your HInfo one, it'd look like this:

Код:
new Float:HousePos[][] =
{
	{pos1,pos2,pos3,int},
	{pos1,pos2,pos3,int},
	{pos1,pos2,pos3,int},
	{pos1,pos2,pos3,int}
};
And make the order match your MAX_HOUSES loop

So instead of doing this:

Код:
SetPlayerPos(playerid,271.884979,306.631988,999.148437)
You'd use your array with help of the loop, like this:

Код:
SetPlayerPos(playerid,HousePos[i][0],HousePos[i][1],HousePos[i][2])
Same for the interior.
Reply


Messages In This Thread
Help (Explain) About System - by ommar8080 - 13.03.2017, 15:03
Re: Help (Explain) About System - by ommar8080 - 14.03.2017, 22:16
Re: Help (Explain) About System - by 4D1L - 14.03.2017, 22:23
Re: Help (Explain) About System - by ommar8080 - 14.03.2017, 22:40
Re: Help (Explain) About System - by ommar8080 - 17.03.2017, 02:51
Re: Help (Explain) About System - by Toroi - 17.03.2017, 07:52
Re: Help (Explain) About System - by ommar8080 - 17.03.2017, 08:27
Re: Help (Explain) About System - by Toroi - 17.03.2017, 08:48

Forum Jump:


Users browsing this thread: 1 Guest(s)