f
Code: Select all
or (itr = spells.begin(); itr != spells.end(); itr++) {
size++;
if (size > 6) {
// only 6 slots for skills on the ui
break;
}
char str[20];
char temp[20];
strcpy(str, "skill");
itoa(size, temp, 10);
strcat(str, temp);
strcat(str, "_id");
packet->setDataByName(str, *itr);
}but it is supposed to be writing the *itr value to skill_id at the particular index
here is the struct line it is suppose to write to <Data ElementName="skill_id" Type="int32" Size="6"/>