Variable "i" shadows a variable at a preceding level
#1

Код:
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\fixes.inc(4509) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\fixes.inc(4650) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\fixes.inc(5168) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\fixes.inc(10500) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\sscanf2.inc(149) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\sscanf2.inc(193) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\amx_header.inc(131) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\opcode.inc(657) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\opcode.inc(677) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\asm.inc(115) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(379) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\..\YSI_Internal\..\amx\codescan.inc(482) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\y_foreach/impl.inc(431) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(162) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(250) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(907) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(1096) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(1191) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(497) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(507) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Data\y_foreach/iterators.inc(523) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\YSI\..\YSI_Coding\..\YSI_Coding\y_malloc/heapalloc.inc(201) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\fcnpc.inc(541) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\colandreas.inc(664) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\colandreas.inc(765) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\colandreas.inc(804) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\colandreas.inc(829) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\colandreas.inc(876) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(173) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(230) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(277) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(306) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(456) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(461) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\em_callbacks.inc(636) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\dialogs.inc(151) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\dialogs.inc(197) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\dialogs.inc(916) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\dialogs.inc(1073) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\zones.inc(420) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\cuffs.inc(669) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\aox.inc(105) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\aox.inc(146) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\aox.inc(169) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\aox.inc(245) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\aox.inc(258) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\OPA.inc(83) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Users\Acer\Documents\Scripting Files\DayzForNewDatabase\pawno\include\OPA.inc(268) : warning 219: local variable "i" shadows a variable at a preceding level
Got a ton of problems about this variable, anyone can explain this stuff to me? Thanks.
Reply
#2

Basically it just means that there are two variable names that are conflicting in the script at the same time. They have the same name.

Do you have a global variable in your script anywhere named 'i'? Your solutions are to either remove the conflicting variable and place it somewhere more appropriate, or simply just rename it to something else that doesn't exist somewhere else.
Reply
#3

Yeah, I was about to say I already fixed it. I've changed the variable to a different letter, it fixed it. Anyways, thanks dude!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)