21.10.2011, 20:41
Hi, I got a little question...
what maths thing do I need to make that per 3 listitems of one dialog represents one index?
so like this:
but then in one simple line that I do not need to use all this cases...
thanks in advance
plus rep for helper
what maths thing do I need to make that per 3 listitems of one dialog represents one index?
so like this:
pawn Код:
if(dialogid == 3290)
{
new index;
if(!response) return 1;
switch(listitem)
{
case 0: index = 1
case 1: index = 1
case 2: index = 1
case 3: index = 2
case 4: index = 2
case 5: index = 2
case 6: index = 3
case 7: index = 3
}
thanks in advance
plus rep for helper