public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Waffenmenu) // Name des Menьs, das wir als ID 0 definiert haben
{
if(response)
{
if(listitem == 0) // AK47
{
GivePlayerWeapon(playerid,30,300);
GivePlayerMoney(playerid, -300);
}
if(listitem == 1) // Desert Eagle
{
GivePlayerWeapon(playerid,24,75);
GivePlayerMoney(playerid, -250);
}
if(listitem == 2) // M4
{
GivePlayerWeapon(playerid,31,300);
GivePlayerMoney(playerid, -600);
}
if(listitem == 3) // Sniper Rifle
{
GivePlayerWeapon(playerid,34,30);
GivePlayerMoney(playerid, -750);
}
if(listitem == 4) // Rifle
{
GivePlayerWeapon(playerid,25,60);
GivePlayerMoney(playerid, -500);
}
if(listitem == 5) // Grenade
{
GivePlayerWeapon(playerid,16,5);
GivePlayerMoney(playerid, -950);
}
if(listitem == 6) //Tec9
{
GivePlayerWeapon(playerid,32,150);
GivePlayerMoney(playerid, -1300);
}
if(listitem == 7) //Molotovs
{
GivePlayerWeapon(playerid,18,8);
GivePlayerMoney(playerid, -800);
}
}
}
return 1;
}
kann mir da biiite einer weiterhelfen ich weiss nicht wie man macht dass man nicht in minus gehen darf ,ich krieg immer errors