YSI_4/y_iterator - 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: YSI_4/y_iterator (
/showthread.php?tid=606638)
YSI_4/y_iterator -
FinStar - 07.05.2016
Hi,
Does anyone know where it might be wrong? I downloaded the new YSI 4, from Misiur and shows me these errors.
https://github.com/Misiur/YSI-Includes
Код:
SAMP 0.3.7\pawno\include\geolocation.inc(474) : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
SAMP 0.3.7\pawno\include\Ladder.inc(43) : error 001: expected token: ";", but found "-identifier-"
SAMP 0.3.7\pawno\include\Ladder.inc(80) : error 017: undefined symbol "Iterator@ldr_Index"
SAMP 0.3.7\pawno\include\Ladder.inc(80) : error 017: undefined symbol "Iterator@ldr_Index"
SAMP 0.3.7\pawno\include\Ladder.inc(80) : error 017: undefined symbol "Iter_Single@ldr_Index"
SAMP 0.3.7\pawno\include\Ladder.inc(80) : fatal error 107: too many error messages on one line
Код:
stock CreateLadder(Float:x, Float:y, Float:z, Float:height, Float:angle, world = -1, interior = -1)
{
new id = Iter_Free(ldr_Index); // Line 80
ldr_Data[id][ldr_areaID] = CreateDynamicCircle(x, y, 1.0, world, interior);
ldr_Data[id][ldr_posX] = x;
ldr_Data[id][ldr_posY] = y;
ldr_Data[id][ldr_base] = z;
ldr_Data[id][ldr_top] = height;
ldr_Data[id][ldr_ang] = angle;
Iter_Add(ldr_Index, id);
return id;
}
Код:
static
ldr_Data[MAX_LADDER][E_LADDER_DATA],
Iterator: ldr_Index<MAX_LADDER>; // Line 43
Код:
foreach (Player, playerid) // Line geolocation :474
Re: YSI_4/y_iterator -
oMa37 - 07.05.2016
PHP код:
foreach(new i : Player)
And try putting the include after
#include <a_samp>
Re: YSI_4/y_iterator -
FinStar - 07.05.2016
Could it be, in the code that is used sscanf function.
http://pastebin.com/AT0rXKZA
(Line 171.)