Hallo,
mein Dialog funktioniert irgendwie nicht richtig (er antwortet nicht)
Das Script (Publicangaben weggelassen):
Code
#define DIALOG_TUNEMENU 98544482574
#define DIALOG_TUNEMENU1 98544482575
#define DIALOG_TUNEMENU2 98544482576
#define DIALOG_TUNEMENU3 98544482577
if (strcmp("/cartune", cmdtext, true, 10) == 0 || strcmp("/tunecar", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pJob] == 18)
{
ShowPlayerDialog(playerid,DIALOG_TUNEMENU,DIALOG_STYLE_LIST,
"Tune Menu","Nitro\nHydraulik\nWheels\nDesigns\nFarben", "OK", "");
return 1;
}
}
if(dialogid == DIALOG_TUNEMENU)
{
if(response)
{
if(listitem == 0){ AddVehicleComponent(GetPlayerVehicleID(playerid),1010); StartTuneSound(playerid);}
if(listitem == 1){ AddVehicleComponent(GetPlayerVehicleID(playerid),1087); StartTuneSound(playerid);}
if(listitem == 2) return ShowPlayerDialog(playerid,
DIALOG_TUNEMENU1,
DIALOG_STYLE_LIST,"Wheels","Wire\nTwist\nAccess\nMega\nImport\nAtomic\nOfTwistfroad\nClassic",
"OK", "Zurück");
if(listitem == 3) return
ShowPlayerDialog(playerid, DIALOG_TUNEMENU2,
DIALOG_STYLE_LIST,"Design","Style 1 \nStyle 2 \nStyle 3 \nStyle 4
\nStyle 5", "OK", "Zurück");
if(listitem == 4) return
ShowPlayerDialog(playerid, DIALOG_TUNEMENU3,
DIALOG_STYLE_LIST,"Farben","Schwarz\nWeiß\nDunkelblau\nHellblau\nBlau\nGrün\nRot\nGelb\nPink",
"OK", "Zurück");
}
}
if(dialogid == DIALOG_TUNEMENU1)
{
if(response)
{
if(listitem == 0){ AddVehicleComponent(GetPlayerVehicleID(playerid),1081); StartTuneSound(playerid);}
if(listitem == 1){ AddVehicleComponent(GetPlayerVehicleID(playerid),1078); StartTuneSound(playerid);}
if(listitem == 2){ AddVehicleComponent(GetPlayerVehicleID(playerid),1098); StartTuneSound(playerid);}
if(listitem == 3){ AddVehicleComponent(GetPlayerVehicleID(playerid),1074); StartTuneSound(playerid);}
if(listitem == 4){ AddVehicleComponent(GetPlayerVehicleID(playerid),1082); StartTuneSound(playerid);}
if(listitem == 5){ AddVehicleComponent(GetPlayerVehicleID(playerid),1085); StartTuneSound(playerid);}
if(listitem == 6){ AddVehicleComponent(GetPlayerVehicleID(playerid),1025); StartTuneSound(playerid);}
if(listitem == 7){ AddVehicleComponent(GetPlayerVehicleID(playerid),1077); StartTuneSound(playerid);}
}
}
if(dialogid == DIALOG_TUNEMENU2)
{
if(response)
{
if(listitem == 0){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),0); StartTuneSound(playerid);}
if(listitem == 1){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),1); StartTuneSound(playerid);}
if(listitem == 2){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),2); StartTuneSound(playerid);}
if(listitem == 3){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),3); StartTuneSound(playerid);}
if(listitem == 4){ ChangeVehiclePaintjob(GetPlayerVehicleID(playerid),4); StartTuneSound(playerid);}
}
}
if(dialogid == DIALOG_TUNEMENU3)
{
if(response)
{
if(listitem == 0){ ChangeVehicleColor(GetPlayerVehicleID(playerid),0,0); StartTuneSound(playerid);}
if(listitem == 1){ ChangeVehicleColor(GetPlayerVehicleID(playerid),1,1); StartTuneSound(playerid);}
if(listitem == 2){ ChangeVehicleColor(GetPlayerVehicleID(playerid),425,425); StartTuneSound(playerid);}
if(listitem == 3){ ChangeVehicleColor(GetPlayerVehicleID(playerid),2,2); StartTuneSound(playerid);}
if(listitem == 4){ ChangeVehicleColor(GetPlayerVehicleID(playerid),16,16); StartTuneSound(playerid);}
if(listitem == 5){ ChangeVehicleColor(GetPlayerVehicleID(playerid),3,3); StartTuneSound(playerid);}
if(listitem == 6){ ChangeVehicleColor(GetPlayerVehicleID(playerid),6,6); StartTuneSound(playerid);}
if(listitem == 7){ ChangeVehicleColor(GetPlayerVehicleID(playerid),146,146); StartTuneSound(playerid);}
}
}
Alles anzeigen
Vielen Dank im Vorraus