Hallo,
ich habe das Problem, das wenn ich in dem Checkpoint mit EventCP[playerid] = 1; durch fahre erscheint aufeinmal ein CP an den Cords 0.0 und dieses kann ich auch nicht durchfahren bzw. es kommt kein neuer RaceCheckpoint.
Fehler oder Warnings bekomme ich beim Compiler keine..
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(EventCPID[playerid] == 1)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][2],EventDaten[event][eY][2],EventDaten[event][eZ][2],
EventDaten[event][eX][3],EventDaten[event][eY][3],EventDaten[event][eZ][3],10.0);
}
else if(EventCPID[playerid] == 2)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][3],EventDaten[event][eY][3],EventDaten[event][eZ][3],
EventDaten[event][eX][4],EventDaten[event][eY][4],EventDaten[event][eZ][4],10.0);
}
else if(EventCPID[playerid] == 3)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][4],EventDaten[event][eY][4],EventDaten[event][eZ][4],
EventDaten[event][eX][5],EventDaten[event][eY][5],EventDaten[event][eZ][5],10.0);
}
else if(EventCPID[playerid] == 4)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][5],EventDaten[event][eY][5],EventDaten[event][eZ][5],
EventDaten[event][eX][6],EventDaten[event][eY][6],EventDaten[event][eZ][6],10.0);
}
else if(EventCPID[playerid] == 5)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][6],EventDaten[event][eY][6],EventDaten[event][eZ][6],
EventDaten[event][eX][7],EventDaten[event][eY][7],EventDaten[event][eZ][7],10.0);
}
else if(EventCPID[playerid] == 6)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][7],EventDaten[event][eY][7],EventDaten[event][eZ][7],
EventDaten[event][eX][8],EventDaten[event][eY][8],EventDaten[event][eZ][8],10.0);
}
else if(EventCPID[playerid] == 7)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][8],EventDaten[event][eY][8],EventDaten[event][eZ][8],
EventDaten[event][eX][9],EventDaten[event][eY][9],EventDaten[event][eZ][9],10.0);
}
else if(EventCPID[playerid] == 8)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][9],EventDaten[event][eY][9],EventDaten[event][eZ][9],
EventDaten[event][eX][10],EventDaten[event][eY][10],EventDaten[event][eZ][10],10.0);
}
else if(EventCPID[playerid] == 9)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][10],EventDaten[event][eY][10],EventDaten[event][eZ][10],
EventDaten[event][eX][11],EventDaten[event][eY][11],EventDaten[event][eZ][11],10.0);
}
else if(EventCPID[playerid] == 10)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][11],EventDaten[event][eY][11],EventDaten[event][eZ][11],
EventDaten[event][eX][12],EventDaten[event][eY][12],EventDaten[event][eZ][12],10.0);
}
else if(EventCPID[playerid] == 11)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][12],EventDaten[event][eY][12],EventDaten[event][eZ][12],
EventDaten[event][eX][13],EventDaten[event][eY][13],EventDaten[event][eZ][13],10.0);
}
else if(EventCPID[playerid] == 12)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][13],EventDaten[event][eY][13],EventDaten[event][eZ][13],
EventDaten[event][eX][14],EventDaten[event][eY][14],EventDaten[event][eZ][14],10.0);
}
else if(EventCPID[playerid] == 13)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][14],EventDaten[event][eY][14],EventDaten[event][eZ][14],
EventDaten[event][eX][15],EventDaten[event][eY][15],EventDaten[event][eZ][15],10.0);
}
else if(EventCPID[playerid] == 14)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][15],EventDaten[event][eY][15],EventDaten[event][eZ][15],
EventDaten[event][eX][16],EventDaten[event][eY][16],EventDaten[event][eZ][16],10.0);
}
else if(EventCPID[playerid] == 15)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][16],EventDaten[event][eY][16],EventDaten[event][eZ][16],
EventDaten[event][eX][17],EventDaten[event][eY][17],EventDaten[event][eZ][17],10.0);
}
else if(EventCPID[playerid] == 16)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][17],EventDaten[event][eY][17],EventDaten[event][eZ][17],
EventDaten[event][eX][18],EventDaten[event][eY][18],EventDaten[event][eZ][18],10.0);
}
else if(EventCPID[playerid] == 17)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][18],EventDaten[event][eY][18],EventDaten[event][eZ][18],
EventDaten[event][eX][19],EventDaten[event][eY][19],EventDaten[event][eZ][19],10.0);
}
else if(EventCPID[playerid] == 18)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][19],EventDaten[event][eY][19],EventDaten[event][eZ][19],
EventDaten[event][eX][20],EventDaten[event][eY][20],EventDaten[event][eZ][20],10.0);
}
else if(EventCPID[playerid] == 19)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][20],EventDaten[event][eY][20],EventDaten[event][eZ][20],
EventDaten[event][eX][21],EventDaten[event][eY][21],EventDaten[event][eZ][21],10.0);
}
else if(EventCPID[playerid] == 20)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][21],EventDaten[event][eY][21],EventDaten[event][eZ][21],
EventDaten[event][eX][22],EventDaten[event][eY][22],EventDaten[event][eZ][22],10.0);
}
else if(EventCPID[playerid] == 21)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][22],EventDaten[event][eY][22],EventDaten[event][eZ][22],
EventDaten[event][eX][23],EventDaten[event][eY][23],EventDaten[event][eZ][23],10.0);
}
else if(EventCPID[playerid] == 22)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][23],EventDaten[event][eY][23],EventDaten[event][eZ][23],
EventDaten[event][eX][24],EventDaten[event][eY][24],EventDaten[event][eZ][24],10.0);
}
else if(EventCPID[playerid] == 23)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][24],EventDaten[event][eY][24],EventDaten[event][eZ][24],
EventDaten[event][eX][25],EventDaten[event][eY][25],EventDaten[event][eZ][25],10.0);
}
else if(EventCPID[playerid] == 24)
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,0,EventDaten[event][eX][24],EventDaten[event][eY][24],EventDaten[event][eZ][24],
EventDaten[event][eX][25],EventDaten[event][eY][25],EventDaten[event][eZ][25],10.0);
}
else if(EventCPID[playerid] == 25)
{
new Sieger;
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid,1,EventDaten[event][eX][25],EventDaten[event][eY][25],EventDaten[event][eZ][25],
0.0,0.0,0.0,10.0);
DisablePlayerRaceCheckpoint(playerid);
Sieger ++;
if(Sieger == 1)
{
new SiegerString[50];
GetPlayerName(playerid, pName, sizeof(pName));
format(SiegerString, sizeof(SiegerString), "1. %s",pName);
TextDrawSetString(events1, SiegerString);
}
else if(Sieger == 2)
{
new SiegerString[50];
GetPlayerName(playerid, pName, sizeof(pName));
format(SiegerString, sizeof(SiegerString), "2. %s",pName);
TextDrawSetString(events2, SiegerString);
}
else if(Sieger == 3)
{
new SiegerString[50];
GetPlayerName(playerid, pName, sizeof(pName));
format(SiegerString, sizeof(SiegerString), "3. %s",pName);
TextDrawSetString(events3, SiegerString);
Sieger = 0;
}
//Event Fertig
}
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
EventCPID[playerid] ++;
return 1;
}
MfG: Apoolecu