SA-MP Forums Archive
[BUG] Pickup ID's - 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: [BUG] Pickup ID's (/showthread.php?tid=326255)



[BUG] Pickup ID's - WackoX - 16.03.2012

Pickup id's are being reset at GMX, therefor the gamemode will use Pickup ID's that are already created by the filterscripts.


Re: [BUG] Pickup ID's - IstuntmanI - 16.03.2012

Confirmed, same ID I think.


Re: [BUG] Pickup ID's - WackoX - 17.03.2012

Kye still reading this? this is a VERY high potentional and annoying bug!


Re: [BUG] Pickup ID's - WackoX - 18.03.2012

bumb


Re: [BUG] Pickup ID's - Rac3r - 19.03.2012

Add these two scripts to your server.cfg and weird things happen
Code:
#include <a_samp>
main();
public OnGameModeInit() // gamemode.pwn
{
	new id;
	for(new i; i < 15; i++)
	{
	    id = CreatePickup(1234, 1, 0.0, 0.0, 0.0, 0);
	    printf("GM ID %d", id);
	}
	return 1;
}
Code:
#include <a_samp>
public OnFilterScriptInit() // filterscript.pwn
{
	new id;
	for(new i; i < 15; i++)
	{
	    id = CreatePickup(1234, 1, 0.0, 0.0, 0.0, 0);
	    printf("FS ID = %d", id);
	}
	return 1;
}
45 pickups are created, when the loop is 15 x 2 = 30 (15 created by filterscript, 30 by gamemode)

It's as if OnGameModeInit() is called twice.


Re: [BUG] Pickup ID's - WackoX - 19.03.2012

- read below -


Re: [BUG] Pickup ID's - WackoX - 19.03.2012

Okay, so i tested it with my RPG gamemode and found that Pickup ID's are getting messed up after GMX.

Pickups at Filterscripts don't get re-created obviously because it's only the Gamemode that gets restarted,
but the Server is re-counting Pickup ID's from start (ID 0) at the Gamemode when it restarts (GMX).

It has now has been proven that Pickup ID's gets reset after GMX, somebody from sampdev can report this?


Re: [BUG] Pickup ID's - WackoX - 20.03.2012

Obviously Kye didn't read this topic when releasing R4, and since this is an easy bug to fix i'll be continuing bumping this thread untill any action has been taken.


AW: Re: [BUG] Pickup ID's - FufLa - 20.03.2012

Quote:
Originally Posted by WackoX
View Post
Obviously Kye didn't read this topic when releasing R4, and since this is an easy bug to fix i'll be continuing bumping this thread untill any action has been taken.
Maybe it's not as easy as you think? It's one of the first reported bugs I remember from the bug board and yet it hasnt been fixed yet.

I know it should be easy to fix but you have no clue how the SA-MP project is structured or how it works, so you can only assume it's an easy fix. There has to be a reason this issue wasnt resolved yet, whether it is Kye ignoring the bug reports/this topic or he simply didnt see it (yet).


Re: [BUG] Pickup ID's - WackoX - 22.03.2012

bump