SA-MP Forums Archive
shadows variable at preceding level. - 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: shadows variable at preceding level. (/showthread.php?tid=436208)



shadows variable at preceding level. - Andriensis - 10.05.2013

projectdrake.pwn(8135) : warning 219: local variable "s" shadows a variable at a preceding level
projectdrake.pwn(814 : 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?


Respuesta: shadows variable at preceding level. - LoLeRo - 10.05.2013

Can you show your script please? We canґt help you without your code.


Re: Respuesta: shadows variable at preceding level. - Andriensis - 10.05.2013

Quote:
Originally Posted by LoLeRo
Посмотреть сообщение
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.


Respuesta: shadows variable at preceding level. - LoLeRo - 10.05.2013

Ok np.