ID:264770
 
Code:
InShow()
set hidden=1
var/i=1
winshow(usr,"Inventory",1)
winset(src,"grid",{"cells="2x[contents.len+1]""})
src<<output("<b>Armor</b>","Inventory.In:1,1")
src<<output("<b>Equiped?</b>","Inventory.In:2,1")
if(locate(/obj/equipment/armor) in usr)
for(var/obj/equipment/armor/A in usr)
src<<output(A,"Inventory.In:1,[++i]")
src<<output(A.suffix,"Inventory.In:2,[i]")


Problem description:
Well i cant seem to get the objs suffix to show in the grid. Any ideas on what im doing wrong?
You're incrementing i before displaying the suffix. Using ++i will increment the variable.