17.03.2017, 07:52
You can create an array just as you have your HInfo one, it'd look like this:
And make the order match your MAX_HOUSES loop
So instead of doing this:
You'd use your array with help of the loop, like this:
Same for the interior.
Код:
new Float:HousePos[][] = { {pos1,pos2,pos3,int}, {pos1,pos2,pos3,int}, {pos1,pos2,pos3,int}, {pos1,pos2,pos3,int} };
So instead of doing this:
Код:
SetPlayerPos(playerid,271.884979,306.631988,999.148437)
Код:
SetPlayerPos(playerid,HousePos[i][0],HousePos[i][1],HousePos[i][2])