[YSI] Filterscript what's included in the release won't work with some edits in
#1

See Subject : + it
The Filterscript what is included in the Gamemode won't work without an edit.
I unquoted the #define YSI_version 2

And now I get these errors:


Код:
C:\Documents and Settings\KnooL\Mijn documenten\SA-MP Server\pawno\include\YSI/Gamemode/YSI_properties.own(1993) : error 017: undefined symbol "YSI_g_sPickupTimer"
C:\Documents and Settings\KnooL\Mijn documenten\SA-MP Server\pawno\include\YSI/Gamemode/YSI_properties.own(1993) : warning 215: expression has no effect
C:\Documents and Settings\KnooL\Mijn documenten\SA-MP Server\pawno\include\YSI/Gamemode/YSI_properties.own(1993) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\KnooL\Mijn documenten\SA-MP Server\pawno\include\YSI/Gamemode/YSI_properties.own(1993) : error 029: invalid expression, assumed zero
C:\Documents and Settings\KnooL\Mijn documenten\SA-MP Server\pawno\include\YSI/Gamemode/YSI_properties.own(1993) : fatal error 107: too many error messages on one line
Line: YSI_g_sPickupTimer[playerid] = -1;

I see no errors. btw its
YSI_Properties.own


Full code of the brackets:

Код:
Property_OnPlayerDisconnect(playerid, reason)
{
	for (new j = 0; j < GROUP_PROPERTY_BITS; j++)
	{
		new
			props = _:YSI_g_sPlayerProperties[playerid][j],
			slot = 1,
			bit;
		while (props)
		{
			if (props & slot)
			{
				new
					prop = (j * 32) + bit,
					e_PROP_FLAGS:flags = YSI_g_sProperties[prop][E_PROP_DATA_FLAGS];
				if (flags & e_PROP_FLAGS_ACTIVE)
				{
					if ((flags & e_PROP_FLAGS_TYPES) == e_PROP_FLAGS_TYPE_PROP)
					{
						if (Property_GetOption(2, flags))
						{
							if (_:Bit_GetBit(YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS], playerid))
							{
								Bit_Set(YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS], playerid, 0, PLAYER_BIT_ARRAY);
							}
						}
						else
						{
							if (_:(YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS][0] == Bit:playerid))
							{
								YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS][0] = Bit:INVALID_PLAYER_ID;
							}
						}
						#pragma tabsize 4
						#if defined _YSI_VISUAL_PICKUPS
							if (Property_GetOption(5, flags))
								Pickup_Show(_:(flags & e_PROP_FLAGS_LINK), 1);
							else
						#endif
								Checkpoint_SetVisible(_:(flags & e_PROP_FLAGS_LINK), 1);
						#pragma tabsize 4
					}
					else if ((flags & e_PROP_FLAGS_TYPES) == e_PROP_FLAGS_TYPE_HOUS)
					{
						if (_:(YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS][0] == Bit:playerid))
						{
							YSI_g_sProperties[prop][E_PROP_DATA_PLAYERS][0] = Bit:INVALID_PLAYER_ID;
						}
					}
				}
				props ^= slot;
			}
			slot <<= 1;
			bit++;
		}
		YSI_g_sPlayerProperties[playerid][j] = Bit:0;
	}
	YSI_g_sPropCount[playerid] = 0;
	YSI_g_sHouseCount[playerid] = 0;
	YSI_g_sCurrentHouse[playerid] = -1;
	YSI_g_sPickupTimer[playerid] = -1;
	YSI_g_sPlayerPickup[playerid] = NO_PICKUP;
	#pragma unused reason
	return 1;
}
Reply


Messages In This Thread
[YSI] Filterscript what's included in the release won't work with some edits in - by KnooL - 10.02.2009, 13:33
Re: [YSI] Filterscript what's included in the release won't work with some edits - by KnooL - 11.02.2009, 05:23
Re: [YSI] Filterscript what's included in the release won't work with some edits - by Jonte92 - 11.02.2009, 08:54

Forum Jump:


Users browsing this thread: 3 Guest(s)