@Paddy87
random(2) wäre entweder 0 oder 1.
mach random(3).
Das ist schwachsinn
Der Fehler liegt offensichtlich an der Variable PaketeRute die Er falsch gesetzt hat.
Ändere dieses
if(PaketeRute[playerid] == 1) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1683.0154,2340.1121,10.8022,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 1 deine Pakete abliefern");
PaketeRute[playerid] = 1;
} if(PaketeRute[playerid] == 2) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1683.5455,2312.3027,10.4711,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 2 deine Pakete abliefern");
PaketeRute[playerid] = 2;
} if(PaketeRute[playerid] == 3) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1682.6989,2302.9126,10.4144,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 3 deine Pakete abliefern");
PaketeRute[playerid] = 3;
}
zu
if(PaketeRute[playerid] == 1) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1683.0154,2340.1121,10.8022,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 1 deine Pakete abliefern");
PaketeRute[playerid] = randRute;
} if(PaketeRute[playerid] == 2) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1683.5455,2312.3027,10.4711,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 2 deine Pakete abliefern");
PaketeRute[playerid] = randRute;
} if(PaketeRute[playerid] == 3) {
GivePlayerMoney(playerid, -Paketpreis);
SetPlayerCheckpoint(playerid,1682.6989,2302.9126,10.4144,5.0);
SendClientMessage(playerid,0xFF000FFF,"Du sollst dann an die Abladestation 3 deine Pakete abliefern");
PaketeRute[playerid] = randRute;
}