Pickup Help
#1

pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    new file[256];
    dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] += 60);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
    DestroyPickup(pickupid);
    return 1;
}
But the pickup isnt destroyed? Why?
Reply
#2

I think you gotta use

DestroyDynamicPickup(pickupid);
Reply
#3

Quote:
Originally Posted by Dr
Посмотреть сообщение
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    new file[256];
    dini_IntSet(file, "Money", PlayerInfo[playerid][pMoney] += 60);
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]);
    DestroyPickup(pickupid);
    return 1;
}
But the pickup isnt destroyed? Why?
because if you are using the streamer plugin and including it in your gamemode or filterscript you have to use the following function rather then using the default PickUp Destroying function.

pawn Код:
native DestroyDynamicPickup(pickupid);
-FalconX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)