Author Topic: Checking clients invent.  (Read 2129 times)

Code: [Select]
for(%i=0;%i<5;%i++){
//stuff
}

is probably the best. Least calculations and least characters:

%i<=4 executes:
(0 < 4 || 0 = 4)
(1 < 4 || 1 = 4)
(2 < 4 || 2 = 4)
(3 < 4 || 3 = 4)
(4 < 4 || 4 = 4)
(5 < 4 || 5 = 4)

%i<5 only does one check each loop:
(0 < 5)
(1 < 5)
(2 < 5)
(3 < 5)
(4 < 5)
(5 < 5)

Then again, with a max inventory checks of 6 * the number of players per check, whatever is easier for your own feeble human brain to interpret when you look at it a month from now is probably best.