[HELP] Pickup insane bug
#10

Код HTML:
new pPickup[600];
new bool:RED1 = false;
new bool:BLUE1 = false;
 
 
forward DestroyTimer1();
public DestroyTimer1()
{
DestroyPickup(pPickup[500]);
}
 
public OnGameModeInit()
{
//code before deleted//
pPickup[200] = CreatePickup(1212,19,-559.5560,-1480.1361,9.3424,0);
//same//
}
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
//code before deleted//
        case BROKENPICKUP:
        {
        if(response)
            {
            if(PlayerInfo[playerid][pSomething] >= 10)
                {
                PlayerInfo[playerid][pSomething] -= 10;
               
                DestroyPickup(pPickup[499]);//RED1
                RED1 = true;
                BLUE1 = false;
                pPickup[500] = CreatePickup(1272,1,2453.7996,-1713.3177,13.6317,0); //BLUE1
                SetTimer("DestroyTimer1", 10000*60, false); //timer for destroy pickup 500 in 10 minutes
               
                }
                else
                {
                SendClientMessage(playerid, 0xFFFFFFFF, "some text");
                }
 
            }
 
        }
 
 
public OnPlayerPickUpPickup(playerid, pickupid)
{
        if(pickupid == pPickup[200]) DestroyPickup(pPickup[24]),
        GivePlayerMoney(playerid, 10000),SendClientMessage(playerid, 0xFFFFFFFF,"text"),SetTimer("mytimer", 
        1800000, 1);
       
        if(pickupid == pPickup[500])
        {
        if(BLUE1 == false)
       
            {
            ShowPlayerDialog(playerid, BROKENPICKUP, DIALOG_STYLE_MSGBOX, "text","text", "yes","");
 
            BLUE1 = true;
            }
        }
        return 1;
}
Reply


Messages In This Thread
[HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 14:21
Re: [HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 15:23
Re: [HELP] Pickup insane bug - by 1fret - 05.06.2017, 15:29
Re: [HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 15:40
Re: [HELP] Pickup insane bug - by DeeadPool - 05.06.2017, 15:41
Re: [HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 15:47
Re: [HELP] Pickup insane bug - by DeeadPool - 05.06.2017, 15:49
Re: [HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 15:52
Re: [HELP] Pickup insane bug - by DeeadPool - 05.06.2017, 15:54
Re: [HELP] Pickup insane bug - by ThomasEvil - 05.06.2017, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)