SA-MP Forums Archive
Loadshit of error after adding... - 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: Loadshit of error after adding... (/showthread.php?tid=362794)



Loadshit of error after adding... - The__ - 25.07.2012

I added a hunger system.
http://pastebin.com/sVxFeU1X
After that, this is what I got :
pawn Код:
(3385) : warning 219: local variable "h" shadows a variable at a preceding level
(6748) : warning 219: local variable "h" shadows a variable at a preceding level
(7877) : warning 219: local variable "h" shadows a variable at a preceding level
(8165) : warning 219: local variable "h" shadows a variable at a preceding level
(8185) : warning 219: local variable "h" shadows a variable at a preceding level
(8202) : warning 219: local variable "h" shadows a variable at a preceding level
(8214) : warning 219: local variable "h" shadows a variable at a preceding level
(8276) : warning 219: local variable "h" shadows a variable at a preceding level
(8281) : warning 219: local variable "h" shadows a variable at a preceding level
(8286) : warning 219: local variable "h" shadows a variable at a preceding level
(8291) : warning 219: local variable "h" shadows a variable at a preceding level
(8296) : warning 219: local variable "h" shadows a variable at a preceding level
(8417) : warning 219: local variable "h" shadows a variable at a preceding level
(13041) : warning 219: local variable "h" shadows a variable at a preceding level
(17081) : warning 219: local variable "h" shadows a variable at a preceding level
(17094) : warning 219: local variable "h" shadows a variable at a preceding level
(17108) : warning 219: local variable "h" shadows a variable at a preceding level
(17124) : warning 219: local variable "h" shadows a variable at a preceding level
(22253) : warning 219: local variable "h" shadows a variable at a preceding level
(24058) : warning 219: local variable "h" shadows a variable at a preceding level
(24062) : warning 219: local variable "h" shadows a variable at a preceding level
(29837) : warning 219: local variable "h" shadows a variable at a preceding level
(37929) : warning 219: local variable "h" shadows a variable at a preceding level
(38075) : warning 219: local variable "h" shadows a variable at a preceding level
(38123) : warning 219: local variable "h" shadows a variable at a preceding level
(38471) : warning 219: local variable "h" shadows a variable at a preceding level
(40956) : warning 219: local variable "h" shadows a variable at a preceding level
(41288) : warning 219: local variable "h" shadows a variable at a preceding level
(41303) : warning 219: local variable "h" shadows a variable at a preceding level
(41333) : warning 219: local variable "h" shadows a variable at a preceding level
(41346) : warning 219: local variable "h" shadows a variable at a preceding level
(41353) : warning 219: local variable "h" shadows a variable at a preceding level
(41365) : warning 219: local variable "h" shadows a variable at a preceding level
(41375) : warning 219: local variable "h" shadows a variable at a preceding level
(41380) : warning 219: local variable "h" shadows a variable at a preceding level
(41386) : warning 219: local variable "h" shadows a variable at a preceding level
(41393) : warning 219: local variable "h" shadows a variable at a preceding level
(41398) : warning 219: local variable "h" shadows a variable at a preceding level
(41403) : warning 219: local variable "h" shadows a variable at a preceding level
(44311) : warning 219: local variable "h" shadows a variable at a preceding level
(47057) : warning 219: local variable "h" shadows a variable at a preceding level
(47306) : warning 203: symbol is never used: "h"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
How does that even make sense ?


Re: Loadshit of error after adding... - SuperViper - 25.07.2012

Do you have a global variable named 'h'?


Re: Loadshit of error after adding... - The__ - 25.07.2012

Nope.
every variable of my 'h' is a var of a loop.


Re: Loadshit of error after adding... - Rudy_ - 25.07.2012

This means there's already a variable defined with the name "h" ...


Re: Loadshit of error after adding... - The__ - 25.07.2012

I know what this means, I just don't understand the problem here.
Let me re-script the hunger system.


Re: Loadshit of error after adding... - Rudy_ - 25.07.2012

Do me a favor show me line
"(3385)"
"Pastebin don't work for me"


Re: Loadshit of error after adding... - The__ - 25.07.2012

Re-scripted,e verything alright, thanks though.