Run time error 4: "Array index out of bounds"
#1

Guys this is my problem.

Quote:

[18:57:20] [debug] Run time error 4: "Array index out of bounds"
[18:57:20] [debug] Attempted to read/write array element at negative index -1
[18:57:20] [debug] AMX backtrace:
[18:57:20] [debug] #0 000360a8 in public CloseGate (0, -1, 1150833603, -999882465, 1110108525, 1056964608, 1036818528, -1028325393, -102067987 from rrp.amx

Quote:

forward CloseGate(gateid, linkid, Float:fX, Float:fY, Float:fZ, Floatpeed, Float:fRotX, Float:fRotY, Float:fRotZ);
public CloseGate(gateid, linkid, Float:fX, Float:fY, Float:fZ, Floatpeed, Float:fRotX, Float:fRotY, Float:fRotZ)
{
new id = -1;

if (GateData[gateid][gateExists] && GateData[gateid][gateOpened])
{
MoveDynamicObject(GateData[gateid][gateObject], fX, fY, fZ, speed, fRotX, fRotY, fRotZ);

if ((id = GetGateByID(linkid)) != -1)
MoveDynamicObject(GateData[id][gateObject], GateData[id][gatePos][0], GateData[id][gatePos][1], GateData[id][gatePos][2], speed, GateData[id][gatePos][3], GateData[id][gatePos][4], GateData[id][gatePos][5]);

GateData[id][gateOpened] = 0;
return 1;
}
return 0;
}

Reply


Messages In This Thread
Run time error 4: "Array index out of bounds" - by 0nur - 16.02.2017, 15:20
Re: Run time error 4: "Array index out of bounds" - by Dayrion - 16.02.2017, 15:30
Re: Run time error 4: "Array index out of bounds" - by JesterlJoker - 16.02.2017, 15:30
Re: Run time error 4: "Array index out of bounds" - by 0nur - 16.02.2017, 15:31
Re: Run time error 4: "Array index out of bounds" - by JesterlJoker - 16.02.2017, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)