30.03.2014, 21:52
I'm adding stuff to my inventory system and upon opening the inventory I don't see the amount next to energy drinks. The amount should be at 0 like the rest. I did everything exactly the same way I did prior to this situation.
Is there a limit to how many variables you can show at once? If so, how do I work around this? Thanks.
Is there a limit to how many variables you can show at once? If so, how do I work around this? Thanks.
pawn Код:
strcat(inventorystring, "Raw Fish: %d\n");
strcat(inventorystring, "Empty Bottles: %d\n");
strcat(inventorystring, "Filled Bottles: %d\n");
strcat(inventorystring, "Materials: %d\n");
strcat(inventorystring, "Logs: %d\n");
strcat(inventorystring, "Cooked Fish: %d\n");
strcat(inventorystring, "Proximity Bombs: %d\n");
strcat(inventorystring, "Snares: %d\n");
strcat(inventorystring, "Energy Drinks: %d");
format(invstring,sizeof(invstring), inventorystring,fish[playerid], emptybottles[playerid], filledbottles[playerid], mats[playerid], logs[playerid], cookedfish[playerid], proximitybomb[playerid], snares[playerid], PlayerEnergyDrinks[playerid]);
ShowPlayerDialog(playerid,INVENTORY_MAIN,DIALOG_STYLE_LIST, "Inventory", invstring, "Select", "Cancel");