[Help] Dutils....
#1

Hello , i have this errors :
Код HTML:
C:\Users\Eyal\Desktop\PDM\Mode\PDM\pawno\include\dutils.inc(45) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\pawno\include\dutils.inc(45) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3691) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5746) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5830) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "minute" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "hour" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "minute" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5380 bytes
Code size:           563352 bytes
Data size:           795092 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1380208 bytes

17 Warnings.
and i dont know what to do ..... can any1 help me please ?
( sorry about the english i'm from isreal ) ...
Reply
#2

its already defined those variables
you can try adding new ones if you are using it for different code in you're gamemode

pawn Код:
new hour2;
new minute2;
Reply
#3

re-name some variables , like leave one "hour" variable once. then change the rest like hour2 hour3 hour4. same with minutes, hope you understand.
Reply
#4

I did it but it brings me 15 warnings
Код HTML:
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3691) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5746) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5830) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "minute2" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5380 bytes
Code size:           563352 bytes
Data size:           795164 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1380280 bytes

15 Warnings.
Reply
#5

Quote:
Originally Posted by TeRmi[N]aTor
Посмотреть сообщение
I did it but it brings me 15 warnings
Код HTML:
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(596) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3000) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3076) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3140) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(3691) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5746) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(5830) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(6835) : warning 219: local variable "minute2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "hour2" shadows a variable at a preceding level
C:\Users\Eyal\Desktop\PDM\Mode\PDM\gamemodes\GoodMode.pwn(12262) : warning 219: local variable "minute2" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5380 bytes
Code size:           563352 bytes
Data size:           795164 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1380280 bytes

15 Warnings.
could you show the warning lines?(code)
Reply
#6

all ?
Reply
#7

Quote:
Originally Posted by TeRmi[N]aTor
Посмотреть сообщение
all ?
just where the error lines are?
Reply
#8

Never mind, I fixed everything, but it appears to me like this:

Код HTML:
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:           5380 bytes
Code size:           562232 bytes
Data size:           794748 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 1378744 bytes
Why?
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)