Hay Leute ich wollte einen einfachen Job machen wo man einfach checkpoints abfahrt das hier ist ein test aber er geht nicht :
Ganz oben ist:
new checkpoints[20];
und jetzt bei
public OnPlayerEnterCheckpoint(playerid):
public OnPlayerEnterCheckpoint(playerid)
{
if(checkpoint[0])
{
checkpoint[1] = SetPlayerCheckpoint(playerid,2531.7366,-2324.9617,22.5883,3); // Checkpoint 2
}
if(checkpoint[1])
{
checkpoint[2] = SetPlayerCheckpoint(playerid,2366.2021,-2159.8523,20.9359,3); // Checkpoint 3
}
if(checkpoint[2])
{
checkpoint[3] = SetPlayerCheckpoint(playerid,2247.5635,-2113.3896,13.0803,3); // Checkpoint 4
}
if(checkpoint[3])
{
checkpoint[4] = SetPlayerCheckpoint(playerid,2097.5164,-2107.7813,13.0328,3); // Checkpoint 5
}
if(checkpoint[4])
{
checkpoint[5] = SetPlayerCheckpoint(playerid,1964.2659,-2072.4058,13.1080,3); // Checkpoint 6
}
if(checkpoint[5])
{
checkpoint[6] = SetPlayerCheckpoint(playerid,1956.5768,-1749.9401,13.1080,3); // Checkpoint 7
}
if(checkpoint[6])
{
checkpoint[7] = SetPlayerCheckpoint(playerid,1839.4587,-1609.7982,13.1079,3); // Checkpoint 8
}
if(checkpoint[7])
{
checkpoint[8] = SetPlayerCheckpoint(playerid,1427.6678,-1621.2534,13.1080,3); // Checkpoint 9
}
if(checkpoint[8])
{
checkpoint[9] = SetPlayerCheckpoint(playerid,1479.5570,-1734.4791,13.1080,3); // Checkpoint 10
}
if(checkpoint[9])
{
checkpoint[10] = SetPlayerCheckpoint(playerid,1567.5243,-1846.3658,13.1080,3); // Checkpoint 11
}
if(checkpoint[10])
{
checkpoint[11] = SetPlayerCheckpoint(playerid,1628.5444,-1874.9417,13.1080,3); // Checkpoint 12
}
if(checkpoint[11])
{
checkpoint[12] = SetPlayerCheckpoint(playerid,1691.6130,-1833.5332,13.1079,3); // Checkpoint 13
}
if(checkpoint[12])
{
checkpoint[13] = SetPlayerCheckpoint(playerid,1805.9324,-1834.6791,13.1080,3); // Checkpoint 14
}
if(checkpoint[13])
{
checkpoint[14] = SetPlayerCheckpoint(playerid,1939.2313,-1934.9496,13.1080,3); // Checkpoint 15
}
if(checkpoint[14])
{
checkpoint[15] = SetPlayerCheckpoint(playerid,2135.9722,-1896.8890,13.0657,3); // Checkpoint 16
}
if(checkpoint[15])
{
checkpoint[16] = SetPlayerCheckpoint(playerid,2212.9573,-1937.3743,13.1261,3); // Checkpoint 17
}
if(checkpoint[16])
{
checkpoint[17] = SetPlayerCheckpoint(playerid,2334.8835,-2135.3196,14.0894,3); // Checkpoint 18
}
if(checkpoint[17])
{
checkpoint[18] = SetPlayerCheckpoint(playerid,2532.4727,-2332.1245,22.2017,3); // Checkpoint 19
}
if(checkpoint[18])
{
checkpoint[19] = SetPlayerCheckpoint(playerid,2740.6863,-2407.2046,13.1668,3); // Checkpoint 20
}
return 1;
}
Jetzt stratet es und sofort kommen alle checkpoints un gehen wieder wie behebe ich das ?