What's wrong with this ?
#1

hi , i've maked a vip shop with Dialogs :
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);
    }
    }
    }
    }
    }
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.
Reply


Messages In This Thread
What's wrong with this ? - by ServerScripter - 22.02.2012, 20:50
Re: What's wrong with this ? - by Jagofr - 22.02.2012, 21:02
Re: What's wrong with this ? - by ServerScripter - 22.02.2012, 21:03
Re: What's wrong with this ? - by Jagofr - 22.02.2012, 21:06
Re: What's wrong with this ? - by TheDominator - 22.02.2012, 21:06
Re: What's wrong with this ? - by ServerScripter - 22.02.2012, 21:07
Re: What's wrong with this ? - by Jagofr - 22.02.2012, 21:12
Re: What's wrong with this ? - by ServerScripter - 22.02.2012, 21:16
Re: What's wrong with this ? - by Jagofr - 22.02.2012, 21:21
Re: What's wrong with this ? - by Jagofr - 22.02.2012, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)