Guten Abend ich habe ja leider noch das dtc autohaus system was ich aber schon größteils umgebaut habe
ich habe hier ein /carlist befehl der auch wunderbar geht doch man kann bei uns 7 cars haben aber er zeigt nur 2 an ?
woran liegt das
~Command~
if (strcmp("/carlist", cmdtext, true)==0)
{
if(Dtc_PlayerHaveCar[playerid][0] && !Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][0][CarModel]-400],PlayerCar[playerid][0][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(Dtc_PlayerHaveCar[playerid][1] && !Dtc_PlayerHaveCar[playerid][0])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][1][CarModel]-400],PlayerCar[playerid][1][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(Dtc_PlayerHaveCar[playerid][0] && Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][0][CarModel]-400],PlayerCar[playerid][0][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][1][CarModel]-400],PlayerCar[playerid][1][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(!Dtc_PlayerHaveCar[playerid][0] && !Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFF0000FF,"Du hast garkein Fahrzeug!");
}
return 1;
}
{
if(Dtc_PlayerHaveCar[playerid][0] && !Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][0][CarModel]-400],PlayerCar[playerid][0][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(Dtc_PlayerHaveCar[playerid][1] && !Dtc_PlayerHaveCar[playerid][0])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][1][CarModel]-400],PlayerCar[playerid][1][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(Dtc_PlayerHaveCar[playerid][0] && Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][0][CarModel]-400],PlayerCar[playerid][0][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
format(string,sizeof(string),"Fahrzeug: %s || Kennzeichen: %s",CarName[PlayerCar[playerid][1][CarModel]-400],PlayerCar[playerid][1][Nummernschild]);
SendClientMessage(playerid,0x00FFFFFF,string);
SendClientMessage(playerid,0xFFFFFFFF,">> Carliste <<");
}
if(!Dtc_PlayerHaveCar[playerid][0] && !Dtc_PlayerHaveCar[playerid][1])
{
SendClientMessage(playerid,0xFF0000FF,"Du hast garkein Fahrzeug!");
}
return 1;
}