immer wenn ich in einen bus einsteige...
kommt ich bin nicht in einem bus... hier der command
if(strcmp(cmdtext, "/route1", true) == 0)
{
if(!Job(playerid,1))return SendClientMessage(playerid,ROT,"Du bist keine Busfahrer!");
{
if(!Bus1[playerid][pmi_bAktiv])
{
new vehicleid = GetPlayerVehicleID(playerid),
model = GetPlayerVehicleID(vehicleid);
if(model == 437)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, BLAU, "Du hast Route 1 gestartet!");
SendClientMessage(playerid, BLAU, "Wenn du aussteigst, wird die Bustour abgebrochen!");
Bus1[playerid][pmi_Checkpoint]=0;
Bus1[playerid][pmi_bAktiv]=true;
Route[playerid] = 0;
SetPlayerCheckpoint(playerid,Bus1_Stationen[0][B_fX],Bus1_Stationen[0][B_fY],Bus1_Stationen[0][B_fZ],Bus1_Stationen[0][B_fRad]);
}
else
{
SendClientMessage(playerid, ROT, "Du bist nicht in einem Bus!");
SetPlayerCheckpoint(playerid,2825.2327,1356.8418,10.7500,5.0);
}
}
else
{
SendClientMessage(playerid, ROT, "Du bist bereits auf Tour!");
}
}
return 1;
}
Bus[0] = AddStaticVehicleEx(437,2851.9712,1351.8152,10.9110,89.2248,2,3,300); // bus1
Bus[1] = AddStaticVehicleEx(437,2852.0347,1358.2142,10.9110,89.7720,2,3,300); // bus2
Bus[2] = AddStaticVehicleEx(437,2852.2068,1364.6251,10.9117,89.3144,2,3,300); // bus3
Bus[3] = AddStaticVehicleEx(437,2806.2908,1364.5369,10.8605,270.2642,2,3,300); // bus4
Bus[4] = AddStaticVehicleEx(437,2806.1516,1358.0852,10.8659,269.6685,2,3,300); // bus5
Bus[5] = AddStaticVehicleEx(437,2806.2676,1351.7794,10.8593,269.9642,2,3,300); // bus6
Bus[6] = AddStaticVehicleEx(437,2806.4490,1345.3413,10.8533,270.2633,2,3,300); // bus7
Bus[7] = AddStaticVehicleEx(437,2806.4695,1338.8296,10.8597,270.1466,2,3,300); // bus8
Bus[8] = AddStaticVehicleEx(437,2806.3474,1332.4811,10.8641,269.9030,2,3,300); // bus9
Bus[9] = AddStaticVehicleEx(437,2806.3533,1326.1794,10.8674,270.3604,2,3,300); // bus10
was ist da falsch?