Hallo hab hier ein kleines problem fiinde den fehler nicht wollte mehr checkpoints hinzufügen aber iwie klappts nicht zu anfang waren 2 habe jetzt noch 3 dazu gemacht die fehler lieneie habe ich rot markiert:
oben habe ich:
new Float:checkCoords[MAX_POINTS][10] = {
{284.2472,-41.8122, 300.0394,-31.2338},     //AMMUNATION
{284.0852,-112.7093, 298.1693,-102.9225},	//AMMUNATION_2
{314.0160,-133.7381,999.6016,275.1007},
{300.4065,-83.9975,1001.5156,180.1345},
{312.3181,-165.6319,999.6010,173.7613}
};
new Float:checkpoints[MAX_POINTS][10] = {
{  289.9959,  -40.4220,  1001.5156, 8.0},
{  296.3686,  -105.0054, 1001.5156, 8.0},
{  314.0160,  -133.7381,  999.6016, 8.0},
{  300.4065,  -83.9975,  1001.5156, 8.0},
{  312.3181,  -165.6319,  999.6010, 8.0}
};
new checkpointType[MAX_POINTS] = {
	CP_AMMU,
	CP_AMMU_2,
	CP_AMMU_3,
	CP_AMMU_4,
	CP_AMMU_5
};
unten und da ist auch der fehler drin in Rot:
forward checkpointUpdate();
public checkpointUpdate()
{
	for(new i=0; i<SLOTS; i++)
	{
	    if(IsPlayerConnected(i)) {
	        for(new j=0; j < MAX_POINTS; j++) {
         		if(isPlayerInArea(i, checkCoords[j])) { <--- in dieser linie ist der fehler
	                if(playerCheckpoint[i]!=j) {
	                    DisablePlayerCheckpoint(i);
						SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
						playerCheckpoint[i] = j;
					}
	            } else {
	            	if(playerCheckpoint[i]==j) {
	            	    DisablePlayerCheckpoint(i);
	            	    playerCheckpoint[i] = 999;
         	    	}
	            }
	        }
		}
	}
}
und so heisst der fehler :
C:\rs.pwn(2736) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Was ist da falsch ? ![]()