Help with dialog.
#3

Quote:
Originally Posted by Mike Garber
Посмотреть сообщение
pawn Код:
if(dialogid==2055)
{
    if(response)
    {
        if(listitem==0) // Full armour
        {
            SetPlayerArmour(playerid,100);
            GivePlayerMoney(playerid,-300);
        }
        if(listitem==1) // Full Health
        {
            SetPlayerHealth(playerid,100);
            GivePlayerMoney(playerid,-300);
        }
        return 1;
    }

}
This is wrong, it'll take 300 dollars away even if you have $0, causing it to to go -$300. If you could tell me how to put in a "You don't have enough money for this," I'd be happy.

Thanks.
Reply


Messages In This Thread
Help with dialog. - by SchurmanCQC - 30.01.2011, 16:27
Re: Help with dialog. - by Mike Garber - 30.01.2011, 16:30
Re: Help with dialog. - by SchurmanCQC - 30.01.2011, 16:42
Re: Help with dialog. - by MMiz - 30.01.2011, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)