Errors
#2

https://sampwiki.blast.hk/wiki/SetPlayerPos

It only requires 4 parameters!
pawn Код:
SetPlayerPos(playerid, RandomSpawn10[rand10][0], RandomSpawn10[rand10][1], RandomSpawn10[rand10][2]);
That will work.

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]);
Reply


Messages In This Thread
Errors - by grand.Theft.Otto - 15.04.2011, 22:16
Re: Errors - by [L3th4l] - 15.04.2011, 23:29

Forum Jump:


Users browsing this thread: 1 Guest(s)