y_ini errors?
#1

I've extracted YSI files in my include folder, now I get these errors:
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\y_compilerdata.inc(287) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Core\y_debug. inc(634) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Core\y_debug. inc(64 : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx .inc(445) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx .inc(954) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx .inc(985) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx .inc(1007) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx .inc(1024) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(463) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(477) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(550) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(564) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(57 : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(753) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(779) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(929) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(1320) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Internal\..\YSI_Core\y_utils.inc(1336) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Coding\y_hooks/impl.inc(390) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Dat a\..\YSI_Coding\y_hooks/impl.inc(112 : warning 235: public function lacks forward declaration (symbol "VA_OnScriptInit")
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\..\YSI_Coding\y_malloc/funcs.inc(381) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\..\YSI_Coding\y_malloc/funcs.inc(506) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\..\YSI_Coding\y_inline/impl.inc(1414) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\..\YSI_Coding\y_inline/impl.inc(1685) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\..\YSI_Coding\y_stringhash.inc(332) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Sto rage\y_ini/reading.inc(421) : warning 219: local variable "str" shadows a variable at a preceding level
D:\BACKUP\racing_samp\gamemodes\race.pwn(139 : warning 219: local variable "using_deprecated_foreach_syntax" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


28 Warnings.
[/PHP]

Include:
Код:
#include <YSI\y_ini>
No idea what it happenes , I'd be glad if someone will be able to help me...
idk if it helps, but I've downloaded the files from here:
https://github.com/Misiur/YSI-Includes
https://github.com/Zeex/amx_assembly
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Most of those are because you have a global called "str", somewhere. The last is because you are using a version of foreach about 12 years out of date.
Oh, well. Thank you mate.
Made me laugh a bit about the 12 y/o foreach.. Thanks for the quick response.
+rep
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Most of those are because you have a global called "str", somewhere. The last is because you are using a version of foreach about 12 years out of date.
I've actually deleted the older version and tried researching a bit about the newer one that is included with those files, I didn't find anything that could help me fix those errors, It'd be much appreciated if you could help me :P
b.t.w, your projects are amazing.
Код:
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Storage\..\YSI_Core\y_utils.inc(430) : warning 201: redefinition of constant/macro (symbol "isnull(%1)")
D:\BACKUP\racing_samp\pawno\include\YSI\..\YSI_Storage\..\YSI_Coding\y_malloc/heapalloc.inc(132) : warning 235: public function lacks forward declaration (symbol "VA_OnScriptInit")
D:\BACKUP\racing_samp\gamemodes\race.pwn(1399) : error 017: undefined symbol "foreach"
D:\BACKUP\racing_samp\gamemodes\race.pwn(1401) : error 017: undefined symbol "i"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
OK, try this version instead:

[url]https://github.com/pawn-lang/YSI-Includes/tree/5.x[/url]

I just found that Misiur’s version is the top search result, though it isn’t the latest.

As for foreach, the old syntax was:

Код:
foreach (Player, i)
But the new, far better, syntax is:

Код:
foreach (new i : Player)
Alright man! again, thanks! it is much appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)