Hallo Zusammen,
why bekomme ich einen Error -20 Plan O.o ??!
Errors:
ZitatC:\Users\Lisa\Desktop\0.3d RC2\gamemodes\Raluno.pwn(52572) : error 040: duplicate "case" label (value 5)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
if(strcmp(cmd,"/dienst",true) == 0)
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,2.0,210.0331,186.0973,1003.0313))
{
ShowPlayerDialog(playerid,DIALOG_DIENST,DIALOG_STYLE_LIST,"Dienst","Alles ablegen\nPfefferspray\nMesser\nSchlagstock\nDeagle\nMP5\nM4\nSniper\nS.A.W.T Ausrüstung\nLeben + Weste","Benutzen","Abbrechen");
return 1;
}
}
}
if(dialogid == DIALOG_DIENST)
{
if(response)
{
switch(listitem)
{
case 0: { ResetPlayerWeapons(playerid); }//Allewaffenweg
case 1: { GivePlayerWeapon(playerid,41,250); }//Pfferfferspray
case 2: { GivePlayerWeapon(playerid,4,999); }//Messer
case 3: { GivePlayerWeapon(playerid,3,999); }//Schlagstock
case 4: { GivePlayerWeapon(playerid,24,180); }//Deagle
case 5: { GivePlayerWeapon(playerid,29,500); }//MP5
case 5: { GivePlayerWeapon(playerid,31,800); }//M4
case 6: { GivePlayerWeapon(playerid,34,120); }//Sniper
case 7: { SetPlayerSkin(playerid,285),GivePlayerWeapon(playerid,41,999),GivePlayerWeapon(playerid,3,999),GivePlayerWeapon(playerid,24,200),GivePlayerWeapon(playerid,29,500),GivePlayerWeapon(playerid,31,500),GivePlayerWeapon(playerid,34,260); }//S.A.W.T Ausrüstung
case 8: { SetPlayerArmour(playerid,100),SetPlayerHealth(playerid,100); }//Leben + Weste
}
}
}
Bitte um Hilfe,
danke!!!
Gruß Andy