Thread: Appearance
View Single Post
  #1  
Old 01-21-2007, 03:12 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Appearance

HTML Code:
function savePlayer(curPlayer)
{
  temp.saveStuff = {"headimg", "bodyimg", "shieldimg", 
                    "attr[1]", "colors[0]", "colors[1]", 
                    "colors[3]", "colors[4]"};
  for (temp.curSave: temp.saveStuff)
  {
    makevar("temp.saveAccount.PD" @ temp.curSave) = makevar("temp.curPlayer." @ temp.curSave);
  }
  /*
    Finish rest of the script...
  */
}
All pretty much works, other than the colors of what the player is wearing. It's all done serverside, however it doesn't want to save what the player's currently wearing, color-wise that is.
Anyone have any idea why it seems to ignore the colors part?

Here's what it's saving:
PHP Code:
PDattr[1]=0
PDbodyimg
=body.png
PDcolors
[0]=0
PDcolors
[1]=0
PDcolors
[3]=0
PDcolors
[4]=0
PDheadimg
=head19.png
PDshieldimg
=no-shield.png 
Reply With Quote