07.11.2014, 09:24
example
i want to do XXX=RandPlayerSpawn2;
for
PHP код:
new Float:RandPlayerSpawn[4][4] = {
{-2564.538,1092.589,55.664,337.096},
{-2356.0573,995.4032,50.8984,182.0485},
{-1382.105224,-230.142044,14.148437,313.913299},
{-2396.605468,-617.606628,132.737396,36.312511}
};
new Float:RandPlayerSpawn2[4][4] = {
{-2564.538,1092.589,55.664,337.096},
{-2356.0573,995.4032,50.8984,182.0485},
{-1382.105224,-230.142044,14.148437,313.913299},
{-2396.605468,-617.606628,132.737396,36.312511}
};
new XXX;
for
PHP код:
new rand = random(sizeof(XXX));
SetPlayerPosEx(playerid, XXX[rand][0], XXX[rand][1], XXX[rand][2],XXX[rand][3]);