02.05.2013, 05:10
So what happens, is that it compiles, but this does not show up in game.
Код:
new coordsstring[900];
new title[900];
switch(AccountInfo[playerid][pChips])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tChips\n",coordsstring,chips);
}
switch(AccountInfo[playerid][pToolKit])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tTool Kits\n",coordsstring,kit);
}
switch(AccountInfo[playerid][pWaterBottle])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tWater Bottles\n",coordsstring,waterbottle);
}
switch(AccountInfo[playerid][pBeef])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tBeef\n",coordsstring,Beef);
}
switch(AccountInfo[playerid][pWater])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tWater\n",coordsstring,water);
}
switch(AccountInfo[playerid][pSoda])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tSoda\n",coordsstring,Soda);
}
switch(AccountInfo[playerid][pMatches])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tMatches\n",coordsstring,matches);
}
switch(AccountInfo[playerid][pWood])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tWood\n",coordsstring,wood);
}
switch(AccountInfo[playerid][pMetal])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tMetal\n",coordsstring,metal);
}
switch(AccountInfo[playerid][pBeefDone])
{
case 0: return 0;
default: format(coordsstring, sizeof coordsstring, "%s%d\tBeef Cooked\n",coordsstring,cookedBeef);
}
switch(AccountInfo[playerid][pChips] + AccountInfo[playerid][pToolKit] + AccountInfo[playerid][pWaterBottle])
{
case 0: format(coordsstring,sizeof(coordsstring),"Empty Backpack");
}
format(title, sizeof title, "{9ACD32}Current Backpack{FFFFFF} [%d/%d]",slotsfree,slots);
ShowPlayerDialog(playerid, BACKPACK, DIALOG_STYLE_LIST, title, coordsstring, "Select", "Close");


