When My Character Dies!
#8

It must be [4] since

Код:
	   
new rnd = random(sizeof(SpawnPoints));
SetPlayerPos(playerid, SpawnPoints[rnd][0], SpawnPoints[rnd][1], SpawnPoints[rnd][2]);
SetPlayerFacingAngle(playerid, SpawnPoints[rnd][3]);
SetCameraBehindPlayer(playerid);
Error if it's [3]
Код:
 error 032: array index out of bounds (variable "SpawnPoints")
Reply


Messages In This Thread
When My Character Dies! - by MadSkillz - 26.09.2011, 16:57
Re: When My Character Dies! - by Redgie - 26.09.2011, 17:00
Re: When My Character Dies! - by CyNiC - 26.09.2011, 17:01
Re: When My Character Dies! - by MadSkillz - 26.09.2011, 17:02
Re: When My Character Dies! - by Luis- - 26.09.2011, 17:10
Re: When My Character Dies! - by MadSkillz - 26.09.2011, 17:12
Re: When My Character Dies! - by Luis- - 26.09.2011, 17:18
Re: When My Character Dies! - by MadSkillz - 26.09.2011, 17:21
Re: When My Character Dies! - by Luis- - 26.09.2011, 17:36
Re: When My Character Dies! - by MadSkillz - 26.09.2011, 17:40

Forum Jump:


Users browsing this thread: 1 Guest(s)