Pickups problem
#1

When i go through the pickup nothing happens.
pawn Код:
pickup_Money = CreatePickup(1318, 23,3875.1072,-9369.9766,28.3291, 0);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup_Money)
    {
     return GivePlayerMoney(playerid, 15000);
    }
return 1;
}
Where is the problem, I can't find it
Reply
#2

try
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup_Money)
    {
        GivePlayerMoney(playerid, 15000);
   
    }
    return l;
}
Reply
#3

The same happens
Reply
#4

try


pawn Код:
pickup_Money = CreatePickup(1318,1,3875.1072,-9369.9766,28.3291, 1);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup_Money)
    {
        GivePlayerMoney(playerid, 15000);
   
    }
    return l;
}
Reply
#5

Why is the pickup type 23? That's not even listed on the wiki.

Change the 23 to something from here https://sampwiki.blast.hk/wiki/PickupTypes
Reply
#6

You changed the virtual world. If it was wrong, I wouldn't be able to see the pickup? I think the problem is not there

PS I want it always to be there which ID to write?
Reply
#7

EDIT in my code now try
Reply
#8

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
EDIT in my code now try
I already told him what to do; he doesn't need people to change a number for him - I'm sure he's capable of that.
Reply
#9

Yes I did it but it still doesn't give the money
Reply
#10

Did you recompile?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)