Hey Leute ich habe folgendes problem, ich habe in meiner fn_keyhandler ein Earplug Script (hier)
Spoiler anzeigen
//F1 For Earplugs
case 59:
{
if(_shift) then
{
switch (player SVAR["Earplugs",0]) do {
case 0: {hint composeText [ image "icons\sound.paa"," 90% Leiser"]; 1 fadeSound 0.1; player SVAR ["Earplugs", 10]; };
case 10: {hint composeText [ image "icons\sound.paa"," 60% Leiser"]; 1 fadeSound 0.4; player SVAR ["Earplugs", 40]; };
case 40: {hint composeText [ image "icons\sound.paa"," 30% Leiser"]; 1 fadeSound 0.7; player SVAR ["Earplugs", 70]; };
case 70: {hint composeText [ image "icons\sound_new.paa"," Normaler Sound"]; 1 fadeSound 1; player SVAR["Earplugs", 0]; };
};
};
};
und bekomme immer diesen Error
Spoiler anzeigen
{
switch (pla>
Error position: <case 59:
{
if(_shift) then
{
switch (pla>
Error Foreign error: Invalid switch block
File mpmissions\__cur_mp.Altis\core\functions\fn_keyhandler.sqf..., line 2
Wie bekomme ich das Problem gelöst ?
Nachtrag: Mission ist NMD Sandbox