26.10.2010, 12:34
Quote:
im tryied to create random checkpoints, but im getting error. :/
when player enter the car. |
pawn Код:
new Float:RandomCP[4][3] =
{
{1075.9678,2385.3535,11.1081,357.8982},
{1094.9563,2357.5154,10.8203,358.8381},
{1067.7051,2365.5979,17.3643,268.5973},
{1110.4586,2356.1936,10.8203,58.9753}
};
3 -> "column"(in this script they are 3 coordinates: X,Y,Z)
And then this code:
pawn Код:
new Random1 = random(sizeof(RandomCP));
SetPlayerCheckpoint(playerid, RandomCP[Random1][0], RandomCP[Random1][1],RandomCP[Random1][2],10);