03.07.2017, 21:46
Hi,
Can anyone tell me where are the brackets missing in the code given below
Can anyone tell me where are the brackets missing in the code given below
Код:
if(dialogid == DIALOG_FREESHOP)
{
if(response)
{
if (playerData[playerid][playerVIPLevel] >= 3)
{
case 1:
{
GivePlayerWeaponEx(playerid, WEAPON_CHAINSAW, 1);
}
case 2:
{
GivePlayerWeaponEx(playerid, WEAPON_DEAGLE, 6000);
}
case 3:
{
GivePlayerWeaponEx(playerid, WEAPON_SAWEDOFF, 6000);
}
case 4:
{
GivePlayerWeaponEx(playerid, WEAPON_AK47, 6000);
}
case 5:
{
GivePlayerWeaponEx(playerid, WEAPON_SNIPER, 6000);
}
case 6:
{
GivePlayerWeaponEx(playerid, WEAPON_PARACHUTE, 1);
}
}
}
return 1;
}


