It's meant to be used in bigger and better scripts, it's just a tool. Similar to how curweapon returns the numerical value of the weapon you're holding, or how curserver returns the IP and port of the server you're on, this returns the # of players on the server. I'm similarly dumbfounded with why this hasn't already been implemented in cubescript. xD
If someone needed to loop a body of code the exact number of times as there are players on the server, it'd be a simple:
...which wasn't (at least as easily) possible before.
The "whoisall" (and others like it) script will be more efficient now, because it won't always be looping 21 times, it'll loop only exactly the number of times it has to:
If someone needed to loop a body of code the exact number of times as there are players on the server, it'd be a simple:
[SELECT ALL] Code:
loop blah (curplayers) []
The "whoisall" (and others like it) script will be more efficient now, because it won't always be looping 21 times, it'll loop only exactly the number of times it has to:
[SELECT ALL] Code:
loop d (curplayers) [whois $d]