16.02.2017, 15:20
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 ![]() |
Quote:
forward CloseGate(gateid, linkid, Float:fX, Float:fY, Float:fZ, Float ![]() public CloseGate(gateid, linkid, Float:fX, Float:fY, Float:fZ, Float ![]() { 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; } |