Guten Abend
ich habe ein autohaus erstellt
per dialog soll man die cars auswählen das geht ja auch alles nur der spawnt die cars nicht
if(dialogid == ottoauto)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
SetVehicleNumberPlate(AddStaticVehicleEx(560,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Sultan
GivePlayerMoney(playerid,-150000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 1:
{
SetVehicleNumberPlate(AddStaticVehicleEx(402,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Buffalo
GivePlayerMoney(playerid,-150000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 2:
{
SetVehicleNumberPlate(AddStaticVehicleEx(413,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Pony
GivePlayerMoney(playerid,-18000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 3:
{
SetVehicleNumberPlate(AddStaticVehicleEx(410,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Manana
GivePlayerMoney(playerid,-30000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 4:
{
SetVehicleNumberPlate(AddStaticVehicleEx(418,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Moonbeam
GivePlayerMoney(playerid,-25000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 5:
{
SetVehicleNumberPlate(AddStaticVehicleEx(422,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Bobcat
GivePlayerMoney(playerid,-6000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 6:
{
SetVehicleNumberPlate(AddStaticVehicleEx(442,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Romero
GivePlayerMoney(playerid,-12000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 7:
{
SetVehicleNumberPlate(AddStaticVehicleEx(445,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Admiral
GivePlayerMoney(playerid,-25000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 8:
{
SetVehicleNumberPlate(AddStaticVehicleEx(457,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Caddy
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 9:
{
SetVehicleNumberPlate(AddStaticVehicleEx(458,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Solair
GivePlayerMoney(playerid,-30000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 10:
{
SetVehicleNumberPlate(AddStaticVehicleEx(475,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Sabre
GivePlayerMoney(playerid,-22000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 11:
{
SetVehicleNumberPlate(AddStaticVehicleEx(560,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Regina
GivePlayerMoney(playerid,-7500);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
case 12:
{
SetVehicleNumberPlate(AddStaticVehicleEx(560,-1644.1199,1214.2235,6.9331,222.3053,0,0,-1),"OttosCar");//Burrito
GivePlayerMoney(playerid,-18000);
SendClientMessage(playerid,Blau,"Das Auto steht vorne am Eingang");
}
}
}
}
woran kann das liegen?