DestryDynamicObject problem
#10

pawn Код:
if (newkeys & KEY_CROUCH)
{
    if(IsValidDynamicObject(Lsobject[117]) && IsPlayerInRangeOfPoint(playerid,2.0,1386.78, -1016.10, 26.01))
    {
        switch(random(6))
        {
            case 0:
            {
                GivePlayerMoney(playerid, 10);
                SendClientMessage(playerid, WHITE, "[!] 10$.");
            }
            case 1:
            {
                GivePlayerMoney(playerid, 15);
                SendClientMessage(playerid, WHITE, "[!] 15$.");
            }
            case 2:
            {
                GivePlayerMoney(playerid, 20);
                SendClientMessage(playerid, WHITE, "[!] 20$.");
            }
            case 3:
            {
                GivePlayerMoney(playerid, 30);
                SendClientMessage(playerid, WHITE, "[!] 30$.");
            }
            case 4:
            {
                GivePlayerMoney(playerid, 25);
                SendClientMessage(playerid, WHITE, "[!] 25$.");
            }
            case 5:
            {
                GivePlayerMoney(playerid, 45);
                SendClientMessage(playerid, WHITE, "[!] 45$.");
            }
            case 6:
            {
                GivePlayerMoney(playerid, 35);
                SendClientMessage(playerid, WHITE, "[!] 35$.");
            }
        }
                DestroyMoneyObject();
    }
}
pawn Код:
stock DestroyMoneyObject()
{
    DestroyDynamicObject(Lsobject[117]);
    DestroyDynamic3DTextLabel(Lslabel[117]);
    return 1;
}
u were using
pawn Код:
DestroyMoneyObject();
this in a switch u would have got an error or warning while compiling if not then re download the sa-mp package
Reply


Messages In This Thread
fixed - by Supermaxultraswag - 04.10.2014, 09:28
Re: DestryDynamicObject problem - by MasonSFW - 04.10.2014, 10:38
Re: DestryDynamicObject problem - by Supermaxultraswag - 04.10.2014, 11:01
Re: DestryDynamicObject problem - by MasonSFW - 04.10.2014, 11:59
Re: DestryDynamicObject problem - by Supermaxultraswag - 04.10.2014, 12:20
Re: DestryDynamicObject problem - by Supermaxultraswag - 04.10.2014, 12:45
Re: DestryDynamicObject problem - by shadowdog - 04.10.2014, 12:57
Re: DestryDynamicObject problem - by Supermaxultraswag - 04.10.2014, 13:08
Re: DestryDynamicObject problem - by Supermaxultraswag - 04.10.2014, 13:15
Re: DestryDynamicObject problem - by AroseKhanNiazi - 04.10.2014, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)