12.06.2013, 00:45
Hi, after some time trying to fix it by myself...I gave up.
Below is a menu where I can spawn three types of drugs, each one giving a message.
My problem is that on the first pickup, it displays each drug message separately but later on it displays all three messages under 1 pickup.
For example I pickup Drug1 and I get 3 messages, one for each drug. Strange problem.
Can anyone help?
Below is a menu where I can spawn three types of drugs, each one giving a message.
My problem is that on the first pickup, it displays each drug message separately but later on it displays all three messages under 1 pickup.
For example I pickup Drug1 and I get 3 messages, one for each drug. Strange problem.
pawn Код:
if(pickupid == Drug1)
{
haveweed[playerid] = 1;
SendClientMessage(playerid, GREEN, "You picked up Weed, type /useeweed to use!");
DestroyPickup(Drug1);
}
if(pickupid == Drug2)
{
haveecstasy[playerid] = 1;
SendClientMessage(playerid, GREEN, "You picked up Ecstasy, type /useecstasy to use!");
DestroyPickup(Drug2);
}
if(pickupid == Drug3)
{
haveheroin[playerid] = 1;
SendClientMessage(playerid, GREEN, "You picked up Heroin, type /useheroin to use!");
DestroyPickup(Drug3);
}