PDA

View Full Version : shadows variable at preceding level.


Andriensis
10/05/2013, 02:20 PM
projectdrake.pwn(8135) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(8148) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(8541) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(8626) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(9834) : warning 219: local variable "psw" shadows a variable at a preceding level
projectdrake.pwn(11071) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(11129) : warning 219: local variable "qb" shadows a variable at a preceding level
projectdrake.pwn(11129) : warning 219: local variable "str4" shadows a variable at a preceding level
projectdrake.pwn(11164) : error 055: start of function body without function header
projectdrake.pwn(11166) : error 021: symbol already defined: "format"
projectdrake.pwn(11169) : error 010: invalid function or declaration
projectdrake.pwn(11171) : error 010: invalid function or declaration
projectdrake.pwn(11176) : error 010: invalid function or declaration
projectdrake.pwn(11239) : warning 219: local variable "psw" shadows a variable at a preceding level
projectdrake.pwn(13949) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(13976) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(14003) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(17322) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(17334) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(17347) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(21161) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(21236) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(21372) : warning 203: symbol is never used: "psw"
projectdrake.pwn(21372) : warning 203: symbol is never used: "qb"
projectdrake.pwn(21372) : warning 203: symbol is never used: "s"
projectdrake.pwn(21372) : warning 203: symbol is never used: "str4"


no, I didn't put a variable called "s" or "psw" or "qb" in general, out of the functions but only in the CMDs, I can't really unterstand it. Yesterday it gave me this error and I Changed all the variables adding things like "1, 2, s, a" to the variable but today it happens again.. wtf?

LoLeRo
10/05/2013, 02:38 PM
Can you show your script please? We canīt help you without your code.

Andriensis
10/05/2013, 02:45 PM
Can you show your script please? We canīt help you without your code.
As you can see it there are a lot of scripts in that gamemode, so I don't really know what "script" I should give you.. just wanted to know if there can be anything wrong in what I'm doing.. Dunno, now I'm trying to make it work with all this warnings, I'll let you know.

EDIT: problem solved..
I added a ";" after CMD:cambiapasswordcanale(playerid,params[]) and it bugged all my gamemode, lol.
Thank you anyway for the support.

LoLeRo
10/05/2013, 02:49 PM
Ok np.