Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine Forum Index
PostGo back to topic
XSV
GTH Moderator
Reputation: 9
Joined: 12 Oct 2005
Posts: 1007
Location: USA

PostPosted: Mon Aug 23, 2010 1:52 pm    Post subject:

Maybe stick to basics and use a Loop like cometjack suggested, instead of a It.

//Original
for(L2Attackable theMob : mobList)
{
if (theMob.isDead())
{
mobList.remove(theMob);
continue;
}
}


my 2 cents:


//New
for(i=theMob.size();i>0;i--)
{
if (theMob.get(i).isDead())
{
mobList.get(i).remove();
continue;
}
}
sorry if syntax is wrong, haven't used java lately. But you get the idea Xd
_________________


Last edited by XSV on Mon Aug 23, 2010 3:22 pm; edited 3 times in total
Back to top
View user's profile Send private message
Post reviews:   Approve 1
Author Review
TROLOLOLOLOLOLOLOLOLOLOLO
Review: Approve
Post reference:
ReviewPosted: Mon Aug 23, 2010 3:45 pm

Cool guy :]
Back to top
View user's profile Send private message
Display:  
Cheat Engine Forum Index


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites