Variable amount not showing in dialog.
#1

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.

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");
Reply


Messages In This Thread
Variable amount not showing in dialog. - by rangerxxll - 30.03.2014, 21:52
Re: Variable amount not showing in dialog. - by EiresJason - 30.03.2014, 22:52
Re: Variable amount not showing in dialog. - by rangerxxll - 31.03.2014, 00:01

Forum Jump:


Users browsing this thread: 2 Guest(s)