Moderator: MacroQuest Developers



Code: Select all
[Dec 10 2003] Item: Kobold Jester's Crown (Tiny slot, Weight 0.0, Value 0cp)
[Dec 10 2003] Lore Name: Fool's Crown
[Dec 10 2003] Flags: LORE
[Dec 10 2003] Item: AC15 -5DEX 5AGI -30INT 30CHA
Code: Select all
[May 24 2003] Item: Kobold Jester's Crown (Tiny slot, Weight 0.0, Value 0cp)
[May 24 2003] Lore Name: Fool's Crown
[May 24 2003] Flags: LORE
[May 24 2003] Item: AC15 251DEX 5AGI 226INT 30CHA


Code: Select all
if (pCharInfo->Cursor->Common.INT) {
sprintf(szTmp,"%hdINT ", pCharInfo->Cursor->Common.INT);
strcat(szMsg,szTmp);
}
Code: Select all
if (pCharInfo->Cursor->Common.INT) {
sprintf(szTmp,"%dINT ", (int)pCharInfo->Cursor->Common.INT);
strcat(szMsg,szTmp);
}

Amadeus wrote:I don't suppose %c would work? Otherwise, yea, it should be changed to CHAR in the struct. Hmmm....I didn't realize that BYTE was unsigned by default....oops!
Code: Select all
BYTE x = -30;
printf("%d", (CHAR)x);