SA-MP Forums Archive
Inventory issue [Cyanide's inventory.inc] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Inventory issue [Cyanide's inventory.inc] (/showthread.php?tid=384003)



Inventory issue [Cyanide's inventory.inc] - Devix - 09.10.2012

I am using Cyanide's inventory system and I love it.. But there are two main issues I have:

Cyanide, this include has some issues for me.

1. Sometimes the file saves when I log out, but sometimes it erases all of the items in the inventory-user-file.
2. I have this command:

Code:
COMMAND:i(playerid, params[])
{
	new ilist[780];
 	new
   	itemName[ 30 ],
   	itemDesc[ 100 ],
   	itemAmm,
   	idx;
   
   while( listInventoryItems( playerid, itemName, itemDesc, itemAmm, idx ) )
   {
   		format( ilist, sizeof ilist, "{FFFFFF}%s - %s (Amount: %i)\n%s", itemName, itemDesc, itemAmm , ilist);
      	idx ++;
   }
    ShowPlayerDialog(playerid, 789, DIALOG_STYLE_LIST, "Inventory", ilist, "Close", "Close");
    return 1;
}
Which shows me two items while only having one sometimes (same items, same descriptions, same amount).

Can anyone please help me? What can be wrong etc?