22.02.2012, 20:50
hi , i've maked a vip shop with Dialogs :
whene i choose the first item(Armour+health it gives me it)
the third item works also (the Minigun case 2)
the case 1 doesn't work(the attached object) whene i choose it on the menu , it crashes me , how to fix it ? thanks.
pawn Код:
if(dialogid == 99)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 3000) {
}else{
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
}
}
case 1:
{
if(GetPlayerMoney(playerid) < 2500) {
}else{
SetPlayerAttachedObject(playerid, 5, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0);
}
}
case 2:
{
if(GetPlayerMoney(playerid) < 6500) {
}else{
GivePlayerWeapon(playerid,38,130);
}
}
}
}
}
the third item works also (the Minigun case 2)
the case 1 doesn't work(the attached object) whene i choose it on the menu , it crashes me , how to fix it ? thanks.