hallo ich habe mir ein tunning system in mein gamemode reingemacht seit den kann iuch net mehr compileren dann stürtz Pawno ab hier ein mal die daten zu den tunning
//tuning
if(strcmp("/tune", cmdtext, true) == 0)
{
if (PlayerInfo[playerid][AdminLevel] >= 3)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Rot, "Du bist in keinem Auto!!");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Pimp My Car", "Felgen\nFarbe\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Schließen");
TogglePlayerControllable(playerid, false);
{
else
}
SendClientMessage(playerid,Rot, "Du hast keine Rechte dafür.");
}
return 1;
}
//end
und ein mal daswas bei OnDialogResponse steht
{
new auto = GetPlayerVehicleID(playerid);
if(dialogid == 1)
{
if(response == 1)
{
if(listitem == 0) //Felgen
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 1) //Farben
{
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 2) //Hidraulics
{
AddVehicleComponent(auto, 1087);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
if(listitem == 3) //Nitro
{
AddVehicleComponent(auto, 1010);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
if(listitem == 4) //Stereo
{
AddVehicleComponent(auto, 1086);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
if(listitem == 5) //Repair
{
RepairVehicle(auto);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
}
if(response == 0) return TogglePlayerControllable(playerid, true);
}
if(dialogid == 2)
{
if(response == 1)
{
if(listitem == 0)
{
AddVehicleComponent(auto, 1080); //Switch
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 1)
{
AddVehicleComponent(auto, 1074); //Mega
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wäjlen", "Zurück");
}
if(listitem == 2)
{
AddVehicleComponent(auto, 1079); //Cutter
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 3)
{
AddVehicleComponent(auto, 1025); //Offroad
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 4)
{
AddVehicleComponent(auto, 1073); //Shadow
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 5)
{
AddVehicleComponent(auto, 1075); //Rimshine
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 6)
{
AddVehicleComponent(auto, 1076); //Wires
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 7)
{
AddVehicleComponent(auto, 1077); //Classic
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 8)
{
AddVehicleComponent(auto, 1078); //Twist
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 9)
{
AddVehicleComponent(auto, 1081); //Grove
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 10)
{
AddVehicleComponent(auto, 1082); //Import
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 11)
{
AddVehicleComponent(auto, 1083); //Dollar
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 12)
{
AddVehicleComponent(auto, 1084); //Trance
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 13)
{
AddVehicleComponent(auto, 1085); //Atomic
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 14)
{
AddVehicleComponent(auto, 1096); //Ahab
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 15)
{
AddVehicleComponent(auto, 1097); //Virtual
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
if(listitem == 16)
{
AddVehicleComponent(auto, 1098); //Access
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Felgen Menu", "Switch\nMega\nCutter\nOffroad\nShadow\nRimshine\nWires\nClassic\nTwist\nGrove\nImport\nDollar\nTrance\nAtomic\nAhab\nVirtual\nAccess\n", "Wählen", "Zurück");
}
}
if(response == 0) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
if(dialogid == 3)
{
if(response == 1)
{
if(listitem == 0)
{
ChangeVehicleColor(auto, 1, 1);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 1)
{
ChangeVehicleColor(auto, 0, 0);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 2)
{
ChangeVehicleColor(auto, 252, 252);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 3)
{
ChangeVehicleColor(auto, 158, 158);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 4)
{
ChangeVehicleColor(auto, 6, 6);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb Menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
if(listitem == 5)
{
ChangeVehicleColor(auto, 170, 170);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Farb menu", "Weiß\nSchwarz\nGrün\nBlau\nGelb\nRot", "Wählen", "Zurück");
}
}
if(response == 0) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Tuning Menu", "Felgen\nFarben\nHidraulics\nNitro\nStereo\nRepair", "Wählen", "Zurück");
}
}
return 0;
} Weis einer wieso dann Pawno abstürtz wenn das drinme ist
MfG
Kiddy_Noobtuber