SA-MP Forums Archive
[Help] Dutils.... - 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: [Help] Dutils.... (/showthread.php?tid=264075)



[Help] Dutils.... - TeRmi[N]aTor - 24.06.2011

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 ) ...


Re: [Help] Dutils.... - Kitten - 24.06.2011

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;



Re: [Help] Dutils.... - Jay. - 24.06.2011

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


Re: [Help] Dutils.... - TeRmi[N]aTor - 24.06.2011

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.



Re: [Help] Dutils.... - Jay. - 24.06.2011

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)


Re: [Help] Dutils.... - TeRmi[N]aTor - 24.06.2011

all ?


Re: [Help] Dutils.... - Jay. - 24.06.2011

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


Re: [Help] Dutils.... - TeRmi[N]aTor - 24.06.2011

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?