Error Stack/heap collision crashdetect
#3

Another way to do something like this?

I have the same error when i change to "static"

Код:
[12:15:10] [debug] Run time error 4: "Array index out of bounds"
[12:15:10] [debug] AMX backtrace:
[12:15:10] [debug] #0 00249158 in public dialog_ListedFurniture (playerid=0, response=0, listitem=0, inputtext[]=@01cf2140 "Frame 3 (3.28 metros)") at C:\Users\Charlie\Desktop\Files\SAMP\gamemodes\NG.pwn:32368
[12:15:10] [debug] #1 native CallLocalFunction () from samp-server.exe
[12:15:10] [debug] #2 0003d94c in public OnDialogResponse (playerid=0, dialogid=32700, response=0, listitem=0, inputtext[]=@01cf20e8 "Frame 3 (3.28 metros)") at C:\Users\Charlie\Desktop\Files\SAMP\pawno2\include\easyDialog.inc:131
Now the error is in this line:

Код:
Dialog:ListedFurniture(playerid, response, listitem, inputtext[])
{
	if (response)
	{
	    new id = House_Inside(playerid);

	    if (id != -1 && House_IsOwner(playerid, id))
	    {
	        PlayerData[playerid][pEditFurniture] = ListedFurniture[playerid][listitem];

			Dialog_Show(playerid, FurnitureList, DIALOG_STYLE_LIST, FurnitureData[PlayerData[playerid][pEditFurniture]][furnitureName], "Editar mueble\nRecoger mueble\nEliminar mueble", ">", "Cancel");
	    }
	}
	for (new i = 0; i != MAX_FURNITURE; i ++) //  (( Error )) <<<
	{
	    ListedFurniture[playerid][i] = -1;
	}
	return 1;
}
Код:
new ListedFurniture[MAX_PLAYERS][MAX_HOUSE_FURNITURE];
Reply


Messages In This Thread
Error Stack/heap collision crashdetect - by StreK - 26.04.2016, 16:54
Re: Error Stack/heap collision crashdetect - by Konstantinos - 26.04.2016, 17:04
Respuesta: Error Stack/heap collision crashdetect - by StreK - 26.04.2016, 17:08
Re: Error Stack/heap collision crashdetect - by Vince - 26.04.2016, 17:13
Re: Error Stack/heap collision crashdetect - by Kar - 26.04.2016, 17:16
Respuesta: Re: Error Stack/heap collision crashdetect - by StreK - 26.04.2016, 17:36
Re: Error Stack/heap collision crashdetect - by AbyssMorgan - 26.04.2016, 17:40
Re: Error Stack/heap collision crashdetect - by Kar - 26.04.2016, 17:41
Re: Error Stack/heap collision crashdetect - by iKevin - 26.04.2016, 17:45
Respuesta: Error Stack/heap collision crashdetect - by StreK - 26.04.2016, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)