[BUG] Pickup ID's
#5

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.
Reply


Messages In This Thread
[BUG] Pickup ID's - by WackoX - 16.03.2012, 21:19
Re: [BUG] Pickup ID's - by IstuntmanI - 16.03.2012, 22:00
Re: [BUG] Pickup ID's - by WackoX - 17.03.2012, 16:53
Re: [BUG] Pickup ID's - by WackoX - 18.03.2012, 20:44
Re: [BUG] Pickup ID's - by Rac3r - 19.03.2012, 08:36
Re: [BUG] Pickup ID's - by WackoX - 19.03.2012, 09:52
Re: [BUG] Pickup ID's - by WackoX - 19.03.2012, 10:08
Re: [BUG] Pickup ID's - by WackoX - 20.03.2012, 19:05
AW: Re: [BUG] Pickup ID's - by FufLa - 20.03.2012, 19:27
Re: [BUG] Pickup ID's - by WackoX - 22.03.2012, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)