View Single Post
  #13  
Old 06-09-2005, 04:11 AM
SuedeWorthey
Sarnak
 
Join Date: Jan 2005
Posts: 64
Default I was able to re-create the error...

I re-created the error, and there was a problem with database.cpp.
Code:
uint32 len_query = MakeAnyLenString(&query, "REPLACE INTO inventory (charid,slotid,itemid,charges,instnodrop,color,augslot1,augslot2,augslot3,augslot4,augslot5) VALUES(%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i)",
char_id, slot_id, inst->GetItem()->ID, charges, inst->IsInstNoDrop() ? 1:0,inst->GetColor(),augslot[0],augslot[1],augslot[2],augslot[3],augslot[4]),augslot[5] );
I dunno if it is right, but augslot should only go from 0 to 4, not 5... so I edited it as follows and will try to re-create the error again.
Code:
uint32 len_query = MakeAnyLenString(&query, "REPLACE INTO inventory (charid,slotid,itemid,charges,instnodrop,color,augslot1,augslot2,augslot3,augslot4,augslot5) VALUES(%i,%i,%i,%i,%i,%i,%i,%i,%i,%i,%i)",
char_id, slot_id, inst->GetItem()->ID, charges, inst->IsInstNoDrop() ? 1:0,inst->GetColor(),augslot[0],augslot[1],augslot[2],augslot[3],augslot[4]);//,augslot[5] );

Last edited by SuedeWorthey; 06-11-2005 at 11:54 AM.. Reason: Inserted code tags for readability.
Reply With Quote