View Single Post
  #11  
Old 04-06-2010, 11:20 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.0temp.clientr.backpack_size.size(); temp.i++) {
  
temp.bagsize clientr.backpack_size[temp.i];
  echo(
temp.bagsize);
}

// For-each example
for (temp.bagsizeclientr.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);
__________________
Quote:
Reply With Quote