Thread: for
View Single Post
  #1  
Old 02-20-2005, 09:10 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
for

I basically know how to use the new for function but I have a question.


It's supposed to replace the with command but I am not sure exactly how one is supposed to actually do a function with it, though setting variables i an do.

I think it is something like this:
NPC Code:

for (pl: players) {
pl.setlevel2(level,x,y);

}


But I am not sure if that's right. I ahve been trying it like that but my results are inconclusive, can someone tell me if this is right, and if not, the proper way to do it?
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!