Ich benutz dafür nen loop.
Du kannst's mit einer _startup funktion machen. Da es im moment alles nuller sind, is das ja nicht viel code:

Code:
void initArray_startup()
{
 var count = 0;
 var count2 = 0;
 while(count < 2)
 {
   count2 = 0;
   while(count2 < 15)
   {
     MapData[count][count2] = 0;
     count2 += 1;
   }
   count += 1;
 }
}



Vorteil ist dass das auch bei lokalen arrays geht.
Wenn du aber eine schönere möglichkeit (wie die oben in C) findest, wäre ich interessiert..

Last edited by Germanunkol; 07/09/09 07:51.

~"I never let school interfere with my education"~
-Mark Twain