15.04.2011, 23:29
https://sampwiki.blast.hk/wiki/SetPlayerPos
It only requires 4 parameters!
That will work.
I'm guessing you are trying to make random spawns?
It only requires 4 parameters!
pawn Код:
SetPlayerPos(playerid, RandomSpawn10[rand10][0], RandomSpawn10[rand10][1], RandomSpawn10[rand10][2]);
I'm guessing you are trying to make random spawns?
pawn Код:
new Float:iRandSpawn[][] = {
{0.0, 0.0, 0.0},
{0.1, 0.1, 0.1},
{0.2, 0.2, 0.2}
};
new
iRand = random(sizeof(iRandSpawn));
SetPlayerPos(playerid, iRandSpawn[iRand][0], iRandSpawn[iRand][1], iRandSpawn[iRand][2]);