Well, this is strange. If I take the string out of the struct, and just make it a global variable it works. o_o
Anyway, here is the broken code and maybe it'll help you figure out what's up. It's probably me and something I'm overlooking, so maybe someone can point out what I'm doing wrong.
struct TIMEVARS {
int sec, min, hour, minCount, mHour, DayTime;
string PartOfDay, timestring, col;
};
TIMEVARS time;
void clock()
{
time.sec++;
if(time.DayTime==1) { time.PartOfDay="PM"; }
if(time.min<15) { time.col = ":0"; } Else { time.col=":"; } // Crashes here
if(time.sec==40) { time.min++; time.sec=0; }
if(time.min==15) { time.MinCount=15; } // Show that 15 minutes have passed
if(time.min==30) { time.MinCount=30; } // Show that 30 minutes have passed
if(time.min==45) { time.MinCount=45; } // Show that 45 mintues have passed
if(time.min==0) { time.MinCount=0; }
if(time.Min==60) { time.Hour++; time.mHour++; time.min=0; }
if(time.hour==12 && time.sec==0 && time.min==0 && time.DayTime==1)
{
HookTimer("");
time.Daytime=0;
time.PartOfDay="AM";
time.col=":0";
time.MinCount=0;
}
if(time.hour==12 && time.sec==0 && time.min==0) { time.Daytime++; }
if(time.hour>12) { time.hour = 1; }
TimeString = str(time.hour)+time.col+str(time.MinCount)+time.PartOfDay;
}