OnDialogResponse [Debug]
#8

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]);
and so on..

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]);
do the same for the rest.
Reply


Messages In This Thread
OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:13
Re: OnDialogResponse [Debug] - by Konstantinos - 03.01.2014, 12:18
Re: OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:23
Re: OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:27
Re: OnDialogResponse [Debug] - by Konstantinos - 03.01.2014, 12:31
Re: OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:35
Re: OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:39
Re: OnDialogResponse [Debug] - by Konstantinos - 03.01.2014, 12:39
Re: OnDialogResponse [Debug] - by MahdiGames - 03.01.2014, 12:45
Re: OnDialogResponse [Debug] - by Konstantinos - 03.01.2014, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)