Array index out of bounds
#9

Quote:
Originally Posted by ball
Посмотреть сообщение
It's difference. InteriorCoords[12][0] is normal value which you can use, but InteriorCoords[12] is an array of values. You can't use arrays in SetPVarFloat - generally you can nowhere use arrays in default functions, you can create these, for example

Код:
public OnGameModeInit()
{
	new Float:fArray[][] = {
	{0.0, 1.1, 2.2},
	{0.0, 1.1, 2.2},
	{0.0, 1.1, 2.2}};
	saveFloat(2, fArray[2]);
}
stock saveFloat(playerid, Float:theArray[]) printf("%.1f %.1f %.1f %d", theArray[0], theArray[1], theArray[2], playerid);
Yeah not for pvars but like for SetPlayerPos(playerid,InteriorCoords[12]); Would work?
Reply


Messages In This Thread
Array index out of bounds - by Glenn332 - 01.03.2015, 16:38
Re: Array index out of bounds - by abyss. - 01.03.2015, 16:47
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 17:01
AW: Array index out of bounds - by Nero_3D - 01.03.2015, 18:05
Re: AW: Array index out of bounds - by Glenn332 - 01.03.2015, 18:58
Re: Array index out of bounds - by ball - 01.03.2015, 19:33
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 20:05
Re: Array index out of bounds - by ball - 01.03.2015, 20:35
Re: Array index out of bounds - by Glenn332 - 01.03.2015, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)