Alright. I want to make random checkpoints but I don't get what's wrong here.
pawn Код:
new Float:Randompost[][13] =
{
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872},
{2495.2620,-1690.3857,14.7656,176.5872}
};
pawn Код:
new rand = random(sizeof(Randompost));
SetPlayerCheckpoint(playerid,Randompost[rand][0], Randompost[rand][1],Randompost[rand][2],Randompost[rand][3],Randompost[rand][4],Randompost[rand][5],Randompost[rand][6],Randompost[rand][7],Randompost[rand][8],Randompost[rand][9],Randompost[rand][10],Randompost[rand][11],Randompost[rand][11]);