Hello, I have an odd problem. While starting my level the programm sometimes crashes and sometimes not. This is the part that seem to cause the crash:
while(count < street_count)//warte bis alle registriert sind
{
count = 0;
for(i=0;i<street_count;i++)
{
if(streets[i]!=NULL)
{
diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
count++;
}
}
wait(1);
}
I don't understand, for what you need the while loop, as there should be no difference between the first and the second iteration of it. I think that
for(i=0;i<street_count;i++)
{
if(streets[i]!=NULL)
{
diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
}
}
should work just the same.
Regarding your problem, did you try the following :
for(i=0;i<street_count;i++)
{
if(streets[i]!=NULL)
{
diag("\n");diag("Check8.");diag(str_for_num(NULL,i));
}
wait(1);
}
Because maybe the problem is that you try to do too much in a frame/cycle.
Could you also post the text of the error message ?