SA-MP Forums Archive
[Help] Problem with warnings - 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: [Help] Problem with warnings (/showthread.php?tid=584441)



[Help] Problem with warnings - Dragonic - 04.08.2015

I dunno what's going on, but when I use sscanf2 on my GM I recieve those warns:

Quote:

C:\Users\Dragonic\Desktop\SA-MP\pawno\include\sscanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dragonic\Desktop\SA-MP\pawno\include\sscanf2.inc(21 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dragonic\Desktop\SA-MP\pawno\include\sscanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Dragonic\Desktop\SA-MP\pawno\include\sscanf2.inc(27 : warning 219: local variable "string" shadows a variable at a preceding level

What could it be?

PS: I don't recieve then when using with other things like my admin fs/any other fs!


Re: [Help] Problem with warnings - jamesbond007 - 04.08.2015

you have another variable with same name defined on those lines. go to each line and delete something like "new string[128];"

edit: wait this is in sscanf2.inc ? lol wtf


Re: [Help] Problem with warnings - Andre02 - 04.08.2015

You are using string as a variable before already, change the others to string2 string3 etc..


Re: [Help] Problem with warnings - Dragonic - 04.08.2015

I know that, but the thing is that those warning are at sscanf2.inc, and that error only happen when I use it with my GM