Inventory issue [Cyanide's inventory.inc]
#1

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?
Reply


Messages In This Thread
Inventory issue [Cyanide's inventory.inc] - by Devix - 09.10.2012, 20:14

Forum Jump:


Users browsing this thread: 1 Guest(s)