Warnings
#1

\pawno\include\utils.inc 1 : warning 219: local variable "string" shadows a variable at a preceding level
\pawno\include\utils.inc 93 : warning 219: local variable "string" shadows a variable at a preceding
(2174 : warning 219: local variable "string" shadows a variable at a preceding level
2215 : warning 235: public function lacks forward declaration (symbol "Health")
2244 : warning 219: local variable "string" shadows a variable at a preceding level
2273 : warning 219: local variable "string" shadows a variable at a preceding level
2342 : warning 219: local variable "string" shadows a variable at a preceding level
2449 : warning 219: local variable "string" shadows a variable at a preceding level
2470 : warning 219: local variable "string" shadows a variable at a preceding level
2603 : warning 219: local variable "string" shadows a variable at a preceding level
3207 : warning 219: local variable "string" shadows a variable at a preceding level
3451 : warning 219: local variable "string" shadows a variable at a preceding level
3486 : warning 219: local variable "string" shadows a variable at a preceding level
3499 : warning 219: local variable "string" shadows a variable at a preceding level
3509 : warning 219: local variable "string" shadows a variable at a preceding level
3538 : warning 219: local variable "string" shadows a variable at a preceding level
3560 : warning 219: local variable "string" shadows a variable at a preceding level
3655 : warning 219: local variable "string" shadows a variable at a preceding level
3670 : warning 219: local variable "string" shadows a variable at a preceding level
3717 : warning 219: local variable "string" shadows a variable at a preceding level
3732 : warning 219: local variable "string" shadows a variable at a preceding level
3796 : warning 209: function "LottoTimer" should return a value
3801 : warning 219: local variable "string" shadows a variable at a preceding level
3920 : warning 219: local variable "string" shadows a variable at a preceding level
4122 : warning 202: number of arguments does not match definition
4477 : warning 219: local variable "string" shadows a variable at a preceding level
5061 : warning 219: local variable "string" shadows a variable at a preceding level
5071 : warning 219: local variable "string" shadows a variable at a preceding level
5081 : warning 219: local variable "string" shadows a variable at a preceding level
5091 : warning 219: local variable "string" shadows a variable at a preceding level
5103 : warning 219: local variable "string" shadows a variable at a preceding level
6451 : warning 219: local variable "Health" shadows a variable at a preceding level
6844 : warning 219: local variable "string" shadows a variable at a preceding level
7479 : warning 219: local variable "string" shadows a variable at a preceding level
7805 : warning 219: local variable "string" shadows a variable at a preceding level
8186 : warning 219: local variable "string" shadows a variable at a preceding level
8312 : warning 219: local variable "string" shadows a variable at a preceding level
8523 : warning 219: local variable "string" shadows a variable at a preceding level
9337 : warning 219: local variable "string" shadows a variable at a preceding level
9387 : warning 219: local variable "string" shadows a variable at a preceding level
10724 : warning 219: local variable "string" shadows a variable at a preceding level
10835 : warning 202: number of arguments does not match definition
10835 : warning 202: number of arguments does not match definition
11501 : warning 219: local variable "string" shadows a variable at a preceding level
11600 : warning 219: local variable "string" shadows a variable at a preceding level
11741 : warning 219: local variable "string" shadows a variable at a preceding level
12906 : warning 219: local variable "string" shadows a variable at a preceding level
12912 : warning 219: local variable "string" shadows a variable at a preceding level
12928 : warning 219: local variable "string" shadows a variable at a preceding level
12942 : warning 219: local variable "string" shadows a variable at a preceding level
12956 : warning 219: local variable "string" shadows a variable at a preceding level
12970 : warning 219: local variable "string" shadows a variable at a preceding level
12984 : warning 219: local variable "string" shadows a variable at a preceding level
12998 : warning 219: local variable "string" shadows a variable at a preceding level
13015 : warning 219: local variable "string" shadows a variable at a preceding level
13032 : warning 219: local variable "string" shadows a variable at a preceding level
13046 : warning 219: local variable "string" shadows a variable at a preceding level
13061 : warning 219: local variable "string" shadows a variable at a preceding level
13076 : warning 219: local variable "string" shadows a variable at a preceding level
13205 : warning 219: local variable "string" shadows a variable at a preceding level
13269 : warning 219: local variable "string" shadows a variable at a preceding level
34128 -- 34129) : warning 215: expression has no effect
34146 -- 34147) : warning 215: expression has no effect
34164 -- 34165) : warning 215: expression has no effect
34182 -- 34183) : warning 215: expression has no effect
34200 -- 34201) : warning 215: expression has no effect
34213 -- 34214) : warning 215: expression has no effect
34228 -- 34229) : warning 215: expression has no effect
41315 : warning 219: local variable "string" shadows a variable at a preceding level
41315 : warning 219: local variable "tmp" shadows a variable at a preceding level
41993 : warning 219: local variable "string" shadows a variable at a preceding level
42120 : warning 219: local variable "string" shadows a variable at a preceding level
42564 : warning 219: local variable "string" shadows a variable at a preceding level
42584 : warning 219: local variable "string" shadows a variable at a preceding level
45117 : warning 219: local variable "string" shadows a variable at a preceding level
45126 : warning 219: local variable "string" shadows a variable at a preceding level
45156 : warning 219: local variable "string" shadows a variable at a preceding level
45253 : warning 219: local variable "string" shadows a variable at a preceding level
45988 : warning 219: local variable "string" shadows a variable at a preceding level
46003 : warning 203: symbol is never used: "DragTime"
11386 : warning 204: symbol is assigned a value that is never used: "adtimer"

I know, warning is no bigdeal, but can someone help with these?:P
Reply
#2

Well the most warnings mean that you're creating 2 string variables in the same instance. Check at the top of your script to see if you defined a global variable called string, if you did, either delete that, or better, delete all of the ones created locally in functions.

Expression as no effect is usually related to an incorrect check, like this

pawn Код:
if(var = var)
It should be

pawn Код:
if(var == var)
So go to those lines and take a look

Symbol is never used or symbol is assigned a value that is never used, means that you ever use the variables, so either delete them, or put them to use. I suspect that it's showing this because of the last warning I told you about, where you probably do

pawn Код:
if(DragTime = something)
and it should be ==.

number of arguments does not match definition, this means that you have written functions and have not put enough arguments in them, or have put too many arguments in them. Go to the lines, check the correct usage of the function and you'll know why.

function "LottoTimer" should return a value, this means that your function "LottoTimer", doesn't return anything. Just add a return 1; to the end of it.

public function lacks forward declaration (symbol "Health"), this means that you haven't forwarded the callback. All public functions require forwarding, use the following at the top of your script.

pawn Код:
forward Health(...yourstuff)
Anyway, warnings are a big deal, some of these warnings will mean parts of your code doesn't even do anything, like the expression has no effect, the code there will do nothing. So you should be aiming to compile with no warnings at all.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)