SA-MP Forums Archive
OnPlayerPickupPickup help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerPickupPickup help (/showthread.php?tid=393973)



OnPlayerPickupPickup help - ThePhill97 - 20.11.2012

Im attempting to make it walk into a pickup and then give them 10k
But I get a warning:
pawn Код:
error 021: symbol already defined: "OnPlayerPickUpPickup"
This is my code:
pawn Код:
new bluedoorenter;

bluedoorenter = CreatePickup(1318, 1, 203.0187,-1834.0686,10.2663, -1);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == bluedoorenter) GivePlayerMoney(playerid,10000);
    return 1;
}
So whats the problem? Please help.


Re: OnPlayerPickupPickup help - Mustafa6155 - 20.11.2012

Where stand that code u line please?


Re: OnPlayerPickupPickup help - ThePhill97 - 20.11.2012

Quote:
Originally Posted by Mustafa6155
Посмотреть сообщение
Where stand that code u line please?
That makes no sense?


Re: OnPlayerPickupPickup help - vernz - 20.11.2012

You probably have twice OnPlayerPickupPickup seach for it


Re: OnPlayerPickupPickup help - ThePhill97 - 20.11.2012

I feel so stupid -_- Thanks vernz!