15.03.2015, 10:07
Error message.
Code.
Код:
error 032: array index out of bounds (variable "ContactData")
Code.
Код:
forward EndCallBecauseWait(playerid); public EndCallBecauseWait(playerid) { strdel(numberab[playerid],0,4); PlayerTextDrawSetString(playerid,KeyBoard2,"_"); SendClientMessage(playerid, 0xFFFF00AA, "No answered!"); SendClientMessage(ContactData[playerid][caller], 0xFFFF00AA, "Call cancelled!"); // <--- ERROR HERE. MobilePlayer[ContactData[playerid][caller]][calling] = 0; MobilePlayer[ContactData[playerid][caller]][caller] = -1; ContactData[playerid][calling] = 0; ContactData[playerid][caller] = -1; return 1; }
Код:
enum contactData { contactID, contactExists, contactName[32], contactNumber, caller }; new ContactData[MAX_PLAYERS][MAX_CONTACTS][contactData];