Random house coordinates
#1

Hi all, maybe you know, how I can get from the all my server houses one random house? My houses system is Dynamic, so I know, that it's possible.

HTML Code:
new house = random(MAX_HOUSES);
	            						
SetPlayerCheckpointEx(playerid, PIZZA_DELIVERY_CHECKPOINT, HouseInfo[house][ExitX], HouseInfo[house][ExitY], HouseInfo[house][ExitZ], 3.0);
This is my code, but checkpoint is going to the 0.0, 0.0, 0.0 coordinates.
Reply


Messages In This Thread
Random house coordinates - by rOps - 28.03.2015, 08:39
Re: Random house coordinates - by Sergei - 28.03.2015, 08:50
Re: Random house coordinates - by rOps - 28.03.2015, 08:51
Re: Random house coordinates - by Juvanii - 28.03.2015, 09:18
Re: Random house coordinates - by rOps - 28.03.2015, 09:21
Re: Random house coordinates - by Juvanii - 28.03.2015, 09:33

Forum Jump:


Users browsing this thread: 2 Guest(s)