Are you trying to use an array?
These code snippets should help..
PHP Code:
// Declaring an array
clientr.backpack_size = {
"Small", "medium", "large", "endless"
};
// Picking one element from an array
temp.bagsize = clientr.backpack_size[2]; // bagsize = "large"
// Basic For Loop example
for (temp.i = 0; temp.i < clientr.backpack_size.size(); temp.i++) {
temp.bagsize = clientr.backpack_size[temp.i];
echo(temp.bagsize);
}
// For-each example
for (temp.bagsize: clientr.backpack_size) {
echo(temp.bagsize);
}
If you're storing like so.. clientr.backpack_size1, clientr.backpack_size2, etc.
You can use makevar or through the dot notation way.
temp.bagsize = makevar("clientr.backpack_size" @ i + 1);
temp.bagsize = clientr.("backpack_size" @ i + 1);