SA-MP Forums Archive
Problem with warnings (+REP) - 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: Problem with warnings (+REP) (/showthread.php?tid=362432)



Problem with warnings (+REP) - dundolina - 24.07.2012

Код:
D:\games\Скинове О.О\Без гангове\pawno\include\dutils.inc(318) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\dutils.inc(337) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\foreach.inc(710) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\foreach.inc(752) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\foreach.inc(794) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\foreach.inc(847) : warning 219: local variable "count" shadows a variable at a preceding level
D:\games\Скинове О.О\Без гангове\pawno\include\foreach.inc(890) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\ники\Desktop\gangwars.pwn(8445) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\ники\Desktop\gangwars.pwn(8826) : warning 219: local variable "count" shadows a variable at a preceding level
C:\Users\ники\Desktop\gangwars.pwn(9932) : warning 219: local variable "count" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Warnings.



Re: Problem with warnings (+REP) - ViniBorn - 24.07.2012

Replace the name of this variable in your GM...


Re: Problem with warnings (+REP) - EV007 - 24.07.2012

The variable count is probably globally defined on top of your gamemode, that prevents other-same-named variables to be defined. Just remove the new count; somewhere on top of your gamemode


Re: Problem with warnings (+REP) - dundolina - 24.07.2012

Thanks man, I give you rep!