[debug] Run time error 4: "Array index out of bounds" [debug] Accessing element at index 30 past array upper bound 29
for (new i = 0; i != MAX_FURNITURE; i ++) {
ListedFurniture[playerid][i] = -1;
}
return 1;
}
[debug] #0 001ba28c in public dialog_ListedFurniture (playerid=0, response=0, listitem=0, inputtext[]=@0x0088ba84 "Bathroom 12 (4.55 meters)") at C:\Reality Roleplay\gamemodes\roleplay.pwn:25906
[debug] #1 native CallLocalFunction () [004743b0] from samp-server.exe
[debug] #2 00003360 in public OnDialogResponse (playerid=0, dialogid=32700, response=0, listitem=0, inputtext[]=@0x0088ba1c "Bathroom 12 (4.55 meters)") at C:\Reality Roleplay\pawno\include\easyDialog.inc:131
if ((s_Public == -1) || (CallLocalFunction("OnDialogPerformed", "dsdd", playerid, string[7], response, funcidx(string) != -1)))
{
CallLocalFunction(string, "ddds", playerid, response, listitem, (!inputtext[0]) ? ("\1") : (inputtext)); // HERE TE LINE 131
}
EDIT: I solved it changing MAX_FURNITURE to MAX_HOUSE_FURNITURE !! |