[00:34:44] [debug] Run time error 4: "Array index out of bounds"
[00:34:44] [debug] Accessing element at index 517 past array upper bound 3
[00:34:44] [debug] AMX backtrace:
[00:34:44] [debug] #0 00002604 in public TimerMove () at C:\Documents and Settings\RafaelBelisario\Mis documentos\SAMP\filterscripts\Heno.pwn:230
bueno uso el mod heno y al parecer ocurre un error en el siguiente codigo
[00:34:44] [debug] Accessing element at index 517 past array upper bound 3
[00:34:44] [debug] AMX backtrace:
[00:34:44] [debug] #0 00002604 in public TimerMove () at C:\Documents and Settings\RafaelBelisario\Mis documentos\SAMP\filterscripts\Heno.pwn:230
bueno uso el mod heno y al parecer ocurre un error en el siguiente codigo
- Código:
else if ((Move == 2) && (yq != 0) && (Matrix[xq][yq-1][zq] == 0))
{
Timez = 4000 - Speed_xy * zq;
Speed = SPEED_FACTOR / float (Timez);
SetTimerEx ("FinishTimer", Timez, 0, "iiii", rand, xq, yq, zq);
yq = yq - 1;
Matrix[xq][yq][zq] = 1;
MoveObject (Hay, x2, y2+4.0, z2, Speed);
}
else if ((Move == 3) && (yq != HAY_Y-1) && (Matrix[xq][yq+1][zq] == 0))
{
Timez = 4000 - Speed_xy * zq;
Speed = SPEED_FACTOR / float (Timez);
SetTimerEx ("FinishTimer", Timez, 0, "iiii", rand, xq, yq, zq);
yq = yq + 1;
Matrix[xq][yq][zq] = 1;
MoveObject (Hay, x2, y2-4.0, z2, Speed);
}
else if ((Move == 4) && (zq != 0) && (Matrix[xq][yq][zq-1] == 0))
{
Timez = 3000 - Speed_z * zq;
Speed = SPEED_FACTOR / float (Timez);
SetTimerEx ("FinishTimer", Timez, 0, "iiii", rand, xq, yq, zq);
zq = zq - 1;
Matrix[xq][yq][zq] = 1;
MoveObject (Hay, x2, y2, z2-3.0, Speed);
}