Posted By: Yashas
Digits Probs :X - 12/01/12 16:10
Code:
typedef struct UserProfile { STRING * Name; STRING * Password; STRING * EMail; Date DOB; Date DOC; int BPI; int XP; int RegionSpeed; int RegionMemory; int RegionAttentition; int RegionFlexibility; int RegionLogic; int Rank; int BestRegion; int TexPoints; int MostCommonRegion; int BestRegion; int SelectedRegion; }UserProfile;
Code:
PANEL * V10StatsDialog = { event = MoveWindow; button(580,6,XButtonClicked,XButtonNormal,XButtonNormal,FormXButtonClicked,NULL,NULL); digits(5,5,"My Stats",DialogTitle,1,0); digits(10,40,"BrainPerformanceIndex:%d",DialogSubText,1,ActiveProfile.BPI); digits(10,100,"Speed:%d",DialogSubText,1,ActiveProfile.RegionSpeed); digits(10,140,"Memory:%d",DialogSubText,1,ActiveProfile.RegionMemory); digits(10,180,"Flexibility:%d",DialogSubText,1,ActiveProfile.RegionFlexibility); digits(10,220,"Problem Solving:%d",DialogSubText,1,ActiveProfile.RegionLogic); digits(10,260,"Attentition:%d",DialogSubText,1,ActiveProfile.RegionAttentition); digits(10,360,"Rank:%d",DialogSubText,1,ActiveProfile.Rank); digits(10,400,"XP:%d",DialogSubText,1,ActiveProfile.XP); digits(10,460,"Rank 1:",DialogSubText,1,0); digits(10,500,"Rank 2:",DialogSubText,1,0); digits(10,540,"Rank 3:",DialogSubText,1,0); digits(110,460,"%s",DialogSubText,1,0); digits(110,500,"%s",DialogSubText,1,0); digits(110,540,"%s",DialogSubText,1,0); alpha = 0; bmap = DialogBackground; layer = 5; flags = TRANSLUCENT; }
If ActiveProfile.BPI is 20 I get the digits in the PANEL showing 0!
Wats wrong here???
Thanks