Code:
// Iterate over all possible items
for(new x=1;x<=W3GetItemsLoaded();x++)
{
// Victim has item x
if(War3_GetOwnsItem(victim, x))
for(new x=1;x<=W3GetItemsLoaded();x++)
{
// Victim has item x
if(War3_GetOwnsItem(victim, x))
Naturally this is because this time my plugin was executed after the shopmenu aswell as the custom item plugins so they all already removed the item before I could check. Is there any simple way around this? I thought of running a timer that repeats itself each 0.1 seconds and just writes all the items of each player into an array. Any other method?





Logged




DarkEnergy
So is there a better way than updating an array or not?