03.01.2014, 12:39
pawn Код:
new rand = random(sizeof(RandomPlayerSpawns));
...
SetPlayerPos(playerid, RandomPlayerSpawnsbf[rand][0], RandomPlayerSpawnsbf[rand][1], RandomPlayerSpawnsbf[rand][2]);
pawn Код:
new rand = random(sizeof(RandomPlayerSpawns));
...
SetPlayerPos(playerid, RandomPlayerSpawnsarea69[rand][0], RandomPlayerSpawnsarea69[rand][1], RandomPlayerSpawnsarea69[rand][2]);
That's incorrect. You need to get the size of each array separate and not from RandomPlayerSpawns.
pawn Код:
new rand = random(sizeof(RandomPlayerSpawnsbf));
...
SetPlayerPos(playerid, RandomPlayerSpawnsbf[rand][0], RandomPlayerSpawnsbf[rand][1], RandomPlayerSpawnsbf[rand][2]);
pawn Код:
new rand = random(sizeof(RandomPlayerSpawnsarea69));
...
SetPlayerPos(playerid, RandomPlayerSpawnsarea69[rand][0], RandomPlayerSpawnsarea69[rand][1], RandomPlayerSpawnsarea69[rand][2]);