Szerző Téma: Hiba  (Megtekintve 698 alkalommal)

herban

  • Vendég
Hiba
« Dátum: 2010. December 24. - 22:07:45 »
0 Show voters
Ezt nem tudom javítani:
 
 error 052: multi-dimensional arrays must be fully initialized

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
Hiba
« Válasz #1 Dátum: 2010. December 24. - 22:17:30 »
0 Show voters
Kódot.

herban

  • Vendég
Hiba
« Válasz #2 Dátum: 2010. December 24. - 22:19:45 »
0 Show voters

public checkpointUpdate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i)) {
        for(new j=0; j < MAX_POINTS; j++) {
            if(isPlayerInArea(i, checkCoords[j])) {
                if(playerCheckpoint!=j) {
                    DisablePlayerCheckpoint(i);

               SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],2);

               playerCheckpoint
= j;
            }

            } else {

               if(playerCheckpoint
==j) {
                   DisablePlayerCheckpoint(i);

                   playerCheckpoint
= 999;
                   }

            }

        }

   }

}

}


new Float:checkCoords[MAX_POINTS][4] = {
{-2689.9849,1389.1598,-2631.0308,1431.7599},     //JIZZYS
{2208.6492,2214.2271,1287.3967,1291.3939}     //PIRAMID
};
new Float:checkpoints[MAX_POINTS][3] = {
{-22.2549,-55.6575,1003.5469},
{2211.4485,1288.9395,10.8203} //PIRAMID
};

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Hiba
« Válasz #3 Dátum: 2010. December 24. - 22:39:51 »
0 Show voters
Nem a legjobb CP Streamert másoltad ki valamelyik módból... ( Cseréld le ! )
MAX_POINTS értéke 2 ?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal