Wisst ihr wo der Fehler liegt ?
Error: (86483) : error 036: empty statement
else if(dialogid == AMMU_GUNMENU)
{
new bizid;
if(response)
{
if(PlayerInfo[playerid][pConnectTime] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot use this as you are currently restricted from possessing weapons!");
switch(listitem)
{ //Desert Eagle\nSPAS-12\nMP5\nM4A1\nAK-47\nSniper Rifle\nShotgun
/*
Shotgun - 2500
MP5 - 5000$
Rifle - 10000$
Deagle - 20000$
AK47 - 100000$
Firstaid - 10000$
*/
case 0: // SHOTGUN 2500
{
if (GetPlayerCash(playerid) >= 2500); // <-- Hier
{
GivePlayerValidWeapon(playerid, 5, 99999);
GivePlayerCash(playerid, -2500);
BizInfo[bizid][bMoney] += 2500;
BizInfo[bizid][bMats] -= 200;
SaveBiz();
}
}
case 1: // MP5 5000
{
GivePlayerValidWeapon(playerid, 29, 99999);
GivePlayerCash(playerid, -5000);
BizInfo[bizid][bMoney] += 5000;
BizInfo[bizid][bMats] -= 500;
SaveBiz();
}
case 2: // Rifle 10000
{
GivePlayerValidWeapon(playerid, 33, 99999);
GivePlayerCash(playerid, -10000);
BizInfo[bizid][bMoney] += 10000;
BizInfo[bizid][bMats] -= 1000;
SaveBiz();
}
case 3: // Deagle 20000
{
GivePlayerValidWeapon(playerid, 24, 99999);
GivePlayerCash(playerid, -20000);
BizInfo[bizid][bMoney] += 20000;
BizInfo[bizid][bMats] -= 2000;
SaveBiz();
}
case 4: // AK47 100000
{
GivePlayerValidWeapon(playerid, 30, 99999);
GivePlayerCash(playerid, -100000);
BizInfo[bizid][bMoney] += 100000;
BizInfo[bizid][bMats] -= 10000;
SaveBiz();
}
case 5: // CRATE GUNS (FIRSTAID)
{
PlayerInfo[playerid][pFirstaid]++;
GivePlayerCash(playerid, -10000);
BizInfo[bizid][bMoney] += 10000;
BizInfo[bizid][bMats] -= 1000;
SaveBiz();
}
}
SendClientMessageEx(playerid, COLOR_YELLOW, " You've successfully bought a Weapon/Firstaid.");
}
else SendClientMessageEx(playerid, COLOR_GREY, "You haven't enough cash or the Business hasn't enough Materials.");
}
LG