[Include] [INC] The fix for the epic pickup bug. [Finally]
#15

Quote:
Originally Posted by KANiS6111
Hey, I dunno about you, but I was really p*ssed off with the pickup bug SA:MP has. With it, pickup id's were not the same for all players, and that sucks. Today, I have thought of a script to work it around and I'm willing to share. This is an include, but since it's really small, I'll just post the code on pastebin and won't upload the file. So, let's go.

First, make a new include named pickupfix.inc in your includes folder.
Secondly, paste the code from the link in it: http://pastebin.com/f37dd849f
Then add this on top of your script:
pawn Код:
#include <pickupfix>
And then, add
pawn Код:
PICKUP_FIX
On OnPlayerPickupPickup callback like this:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  FIX_PICKUPS
Now that you have done it, there will be no more pickupid messups! Isn't that great?

I made this myself, but I use some Andre's functions, so I gave him credits. Thank you for reading, and goodbye!
Why do you say to add PICKUP_FIX onto the OnPlayerPickUpPickup, and then in example we see FIX_PICKUPS ??
Reply


Messages In This Thread
[INC] The fix for the epic pickup bug. [Finally] - by kazimieras - 09.08.2008, 20:41
Re: [INC] The fix for the epic pickup bug. [Finally] - by Grove - 09.08.2008, 21:09
Re: [INC] The fix for the epic pickup bug. [Finally] - by kazimieras - 09.08.2008, 21:17
Re: [INC] The fix for the epic pickup bug. [Finally] - by pspleo - 09.08.2008, 21:22
Re: [INC] The fix for the epic pickup bug. [Finally] - by tomozj - 09.08.2008, 21:33
Re: [INC] The fix for the epic pickup bug. [Finally] - by mikster1 - 28.08.2008, 08:41
Re: [INC] The fix for the epic pickup bug. [Finally] - by sebihunter - 28.08.2008, 16:56
Re: [INC] The fix for the epic pickup bug. [Finally] - by mikster1 - 29.08.2008, 08:43
Re: [INC] The fix for the epic pickup bug. [Finally] - by Neoncore - 02.09.2008, 00:44
Re: [INC] The fix for the epic pickup bug. [Finally] - by error55o - 22.10.2008, 21:34
Re: [INC] The fix for the epic pickup bug. [Finally] - by error55o - 24.10.2008, 00:25
Re: [INC] The fix for the epic pickup bug. [Finally] - by BeckzyBoi - 25.10.2008, 19:30
Re: [INC] The fix for the epic pickup bug. [Finally] - by kazimieras - 03.11.2008, 10:54
Re: [INC] The fix for the epic pickup bug. [Finally] - by Reamis - 03.11.2008, 11:43
Re: [INC] The fix for the epic pickup bug. [Finally] - by Tornado - 03.11.2008, 13:22
Re: [INC] The fix for the epic pickup bug. [Finally] - by x-cutter - 31.12.2008, 01:03
Re: [INC] The fix for the epic pickup bug. [Finally] - by ғαιιοцт - 22.01.2009, 17:37
Re: [INC] The fix for the epic pickup bug. [Finally] - by ғαιιοцт - 24.01.2009, 13:31
Re: [INC] The fix for the epic pickup bug. [Finally] - by Dark_BasS - 24.01.2009, 14:52
Re: [INC] The fix for the epic pickup bug. [Finally] - by TrueCoppa - 24.01.2009, 15:00
Re: [INC] The fix for the epic pickup bug. [Finally] - by Zamaroht - 24.01.2009, 15:18
Re: [INC] The fix for the epic pickup bug. [Finally] - by ғαιιοцт - 24.01.2009, 15:55

Forum Jump:


Users browsing this thread: 3 Guest(s)