OK, ich hab einen Busauftrag gemacht und habe keine Errors...
Problem: Wenn ich in den Bus einsteige kackt der Server ab!
Scriptteil:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 1)
{
if (strcmp("/fare", "", true, 0) == 0)
{
if (GetPlayerTeam(playerid) == 1)
{
SendClientMessageToAll(0x00FFFFFF, "Überlandbusfahrer %s ist jetzt im Dienst!");
SendClientMessage(playerid, 0xFFFFFFFF,"Du bist jetzt im Dienst,\nfolge den Checkpoints um mögliche Fahrgäste abzuholen!");
SetPlayerRaceCheckpoint(playerid, 1, 225.398651, -84.540825, 1.857317, 666.406250, -492.716156, 16.615131, 4);
if (IsPlayerInRaceCheckpoint(playerid))
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 1, 666.406250, -492.716156, 16.615131, 812.900940, -602.594299, 16.615129, 4);
if (IsPlayerInRaceCheckpoint(playerid))
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 1, 812.900940, -602.594299, 16.615129,1305.337402, 326.234802, 19.833879, 4);
if (IsPlayerInRaceCheckpoint(playerid))
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 1, 1305.337402, 326.234802, 19.833879, 1231.1644,298.8488,19.7096,154.3138, 4);
if (IsPlayerInRaceCheckpoint(playerid))
{
DisablePlayerRaceCheckpoint(playerid);
SetPlayerRaceCheckpoint(playerid, 1, 1231.1644,298.8488,19.7096,154.3138, 1231.1644,298.8488,19.7096,154.3138, 4);
if (IsPlayerInRaceCheckpoint(playerid))
{
SendClientMessageToAll(0x00FFFFFF,"%s hat seine Überlandsfahrt beendet!");
}
}
}
}
}
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "Du bist kein Busfahrer!");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Hoffe um Hilfe!
MfG Chris