[YSI] Filterscript what's included in the release won't work with some edits in - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [YSI] Filterscript what's included in the release won't work with some edits in (
/showthread.php?tid=65151)
[YSI] Filterscript what's included in the release won't work with some edits in -
KnooL - 10.02.2009
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;
}
Re: [YSI] Filterscript what's included in the release won't work with some edits -
KnooL - 11.02.2009
someone?
Re: [YSI] Filterscript what's included in the release won't work with some edits -
Jonte92 - 11.02.2009
YSI_g_sPickupTimer[playerid] = YSI_g_sPickupTimer[playerid]-1;
I think some errrors should disapear then.