PDA

View Full Version : Strange pickup bug


SiJ
20/04/2010, 05:48 PM
Hey,
When I reload my FS (OnFilterScriptExit callback has DestroyPickup) and pick up a pickup created by that FS it calls OnPlayerPickUpPickup with wrong pickupid (so I get wrong code executed for that pickup)

Rac3r
20/04/2010, 06:10 PM
Unsure if it's related, but I broke our pickups the other day, it printed that the ID was 0, but really it was ID 1 (second pickup created).

CreatePickup(2485,0,0.0,0.0,-20.0,STARTVWORLD_MIN);//dummy pickup

CreatePickup(2485,1,246.4358,117.7225,1003.2188,ST ARTVWORLD_MIN);
CreatePickup(1586,1,252.1006,117.4052,1002.5000,ST ARTVWORLD_MIN);
CreatePickup(1518,1,258.5749,109.7042,1003.2188,ST ARTVWORLD_MIN);
CreatePickup(2510,1,251.5251,112.1837,1003.2188,ST ARTVWORLD_MIN);
CreatePickup(1277,1,240.4717,112.8771,1003.2188,ST ARTVWORLD_MIN);
CreatePickup(1255,1,-1947.2568,258.2011,35.53095,STARTVWORLD_MIN);

[22:28:37] [Pickup] ID: 32 NAME: Rac3r PICKUPID: 0
[22:29:08] [Pickup] ID: 32 NAME: Rac3r PICKUPID: 0

Really strange.

Just thought I'd add this to the mix. Hopefully it's a not completely unrelated.

Sew_Sumi
24/04/2010, 01:49 AM
I don't see why it would really matter which ID it picks up, as your script should be tracking the pickup...

Simon
24/04/2010, 02:55 AM
Pickup ID's are still bugged, simple gamemode with instructions on how to reproduce bug here:

http://sa-mp.pastebin.com/CZzWpMzi

Simon
23/08/2010, 11:14 AM
Pickup ID's are still bugged, simple gamemode with instructions on how to reproduce bug here:

http://sa-mp.pastebin.com/CZzWpMzi

Still bugged in 0.3b R2.