Hallo,ich bekomme 3 Warnings nicht weg
Error:
"C:\Users\Hami\Desktop\Selfmade Script\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(413) : warning 225: unreachable code
C:\Users\Hami\Desktop\Selfmade Script\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(413) : warning 217: loose indentation
C:\Users\Hami\Desktop\Selfmade Script\Happy Deathmatch\gamemodes\HappyDeathmatch.pwn(451) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings."
DIALOGE :
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == ShopDialog )
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
if(listitem == 0)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine Schutzweste gekauft!");
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-500);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine M4 gekauft!");
GivePlayerWeapon(playerid,31,2000);
GivePlayerMoney(playerid,-1500);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine SMG gekauft!");
GivePlayerWeapon(playerid,29,2000);
GivePlayerMoney(playerid,-1200);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine Deagle gekauft!");
GivePlayerWeapon(playerid,24,2000);
GivePlayerMoney(playerid,-1000);
return 1;
}
}
}
return 1;
//Mafia Shop
if(dialogid == KaufenDialog )
{
if(response == 0)
{
return 1;
}
if(response == 1)
{
if(listitem == 0)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine Schutzweste gekauft!");
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-500);
return 1;
}
if(listitem == 1)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine AK47 gekauft!");
GivePlayerWeapon(playerid,30,2000);
GivePlayerMoney(playerid,-1500);
return 1;
}
if(listitem == 2)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine SMG gekauft!");
GivePlayerWeapon(playerid,29,2000);
GivePlayerMoney(playerid,-1200);
return 1;
}
if(listitem == 3)
{
SendClientMessage(playerid,0x7AA4A6FF,"Du hast dir eine Deagle gekauft!");
GivePlayerWeapon(playerid,24,2000);
GivePlayerMoney(playerid,-1000);
return 1;
}
}
}
return 1;
}
Danke im Vorraus