Dark Age Games
Home Dark Age EX Dark Age 2 Message Board Fan Art FAQ Kelzar Mage DALpedia MS Forum
Board Index Dark Age General Bug Report Website Off Topic Register User Edit User User List Search

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
}
}
}
}

Me>You
Edit Post