05.08.2010, 08:39
Wont SetPlayers CP
annd... if maximum is 3 of random it will take 0 ?
pawn Код:
//upper
new Float:MatsCPed[3][3] = {
{122.0939,-186.6473,1.4401},
{1349.7599,242.7418,19.4297},
{2338.0352,67.4235,26.3571}
};
// in function
new rand = random(sizeof(MatsCPed));
SetPlayerCheckpoint(playerid, MatsCPed[rand][0],MatsCPed[rand][1],MatsCPed[rand][2],5.0);
annd... if maximum is 3 of random it will take 0 ?