new TestRace[MAX_PLAYERS];
new RaceCheckpoint[MAX_PLAYERS];
public OnPlayerEnterRaceCheckpoint(playerid)
{
switch(TestRace[playerid])// Zeile 31 im Script
{
case 1:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X1,Y1,Z1,X2,Y2,Z2,10.00);
RaceCheckpoint[playerid] = 1;
}
case 2:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X2,Y2,Z2,X3,Y3,Z3,10.00);
RaceCheckpoint[playerid] = 2;
}
case 3:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X3,Y3,Z3,X4,Y4,Z4,10.00);
RaceCheckpoint[playerid] = 3;
}
case 4:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X4,Y4,Z4,X5,Y5,Z5,10.00);
RaceCheckpoint[playerid] = 4;
}
case 5:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X5,Y5,Z5,X6,Y6,Z6,10.00);
RaceCheckpoint[playerid] = 5;
}
case 6:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid;0,X6,Y6,Z6,X7,Y7,Z7,10.00);
RaceCheckpoint[playerid] = 6;
}
case 7:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X7,Y7,Z7,X8,Y8,Z8,10.00);
RaceCheckpoint[playerid] = 7;
}
case 8:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X8,Y8,Z8,X9,Y9,Z9,10.00);
RaceCheckpoint[playerid] = 8;
}
case 9:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X9,Y9,Z9,X10,Y10,Z10,10.00);
RaceCheckpoint[playerid] = 9;
}
case 10:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,X10,Y10,Z10,X11,Y11,Z11,10.00);
RaceCheckpoint[playerid] = 10;
}
case 11:
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,1,X11,Y11,Z11,-1.0,-1.0,-1.0,10.00);
RaceCheckpoint[playerid] = 11;
}
}
return 1;
}
so ist es jetzt richtig