Open VazenZ opened 6 months ago
You are trying to make a transaction with a deleted id. Share line 19 from the SHOWITEMBOX.pwn file.
for(new i=-1;++i<10;) PlayerTextDrawDestroy(playerid, TextDrawItemBox[playerid][(IndexItemBox[playerid]*10)+i]);
Your ID has an invalid value. Change the code as follows.
for(new i = -1; ++i < 10;)
{
if(IsValidDynamicPlayerTextDraw(playerid, TextDrawItemBox[playerid][ (IndexItemBox[playerid] * 10) + i ]))
{
PlayerTextDrawDestroy(playerid, TextDrawItemBox[playerid][ (IndexItemBox[playerid] * 10) + i ]);
}
}
how to fix that sir