grrr... Posted by: Tidus 02:11:06 12-10-2005 |
Another program messing up =/
This time, when I add items, the program adds 2x the amount I told it to.
#method itemgive(stuff$,itemamount!)
{
#include(item.prg)
#for(i!=1;i!<31;i!=i!+1)
{
#if(itemcount[i!]!=0)
{
#if(item[i!]$="")
{
#item[i!]$=stuff$
#itemcount[i!]!=itemcount[i!]!+itemamount!
#if(itemcount[i!]!>99)
{
#itemcount[i!]!=99
}
#i!=31
}
}
#if(itemcount[i!]!>0)
{
#if(item[i!]$=stuff$)
{
#itemcount[i!]!=itemcount[i!]!+itemamount!
#if(itemcount[i!]!>99)
{
#itemcount[i!]!=99
}
#i!=31
}
}
}
}