Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Checking clients invent.
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: Checking clients invent. (Read 2129 times)
Space Guy
August 28, 2007, 10:15:52 AM
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)
Ad Bot
Advertisement
Mr. Wallet
September 01, 2007, 02:51:18 PM
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.
Print
Pages:
1
[
2
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Checking clients invent.