02.04.2012, 08:23
Hi, I'm confused with this. How do I add 'SetPlayerInterior' ?
I thought it would be SetPlayerInterior(playerid, Locations[rand][10]);
but doesn't work...
new Float:Locations[1][10] =
{
{-2174.5286,1724.5497,31.9492, -2160.3489,1715.1298,34.6726, -2174.5286,1724.5497,31.9492, 225.1787}
};
new rand = random(sizeof(Locations));
SetPlayerPos(playerid, Locations[rand][0], Locations[rand][1], Locations[rand][2]);
SetPlayerCameraPos(playerid, Locations[rand][3], Locations[rand][4], Locations[rand][5]);
SetPlayerCameraLookAt(playerid, Locations[rand][6],Locations[rand][7], Locations[rand][8]);
SetPlayerFacingAngle(playerid, Locations[rand][9]);
Sorry I can't turn it into 'code format' due to my net browser problem.
I thought it would be SetPlayerInterior(playerid, Locations[rand][10]);
but doesn't work...
new Float:Locations[1][10] =
{
{-2174.5286,1724.5497,31.9492, -2160.3489,1715.1298,34.6726, -2174.5286,1724.5497,31.9492, 225.1787}
};
new rand = random(sizeof(Locations));
SetPlayerPos(playerid, Locations[rand][0], Locations[rand][1], Locations[rand][2]);
SetPlayerCameraPos(playerid, Locations[rand][3], Locations[rand][4], Locations[rand][5]);
SetPlayerCameraLookAt(playerid, Locations[rand][6],Locations[rand][7], Locations[rand][8]);
SetPlayerFacingAngle(playerid, Locations[rand][9]);
Sorry I can't turn it into 'code format' due to my net browser problem.