Im trying to make a loop to create a menu list of my Items Shop, the code below is a example how I made it, and Im trying to make an option if the user already have that item doesn't show the price, but if they didnt have that item the price appears, but I don't know the correct way to do it.
for(new i = 0; i < ITEM; i++ ) { if(g_ItemsUser[id][i]) // I know this isn't the correct way since "i" it will be 1, 2, 3... and the enum returns the values 1, 2, 4, 8... Its just an example for you to know what I want :) formatex(item, sizeof(item) - 1, "%s%s", g_iItem[id] == i ? "\d" : "\w", g_iItemName[i]); else formatex(item, sizeof(item) - 1, "%s%s \rPrice: \y%i", g_iItemName[i], g_iItemPrice[i]);