Warnings on including
#1

Its maybe a n00b question but i need help with it.

When i include:

Код:
#include <sscanf2>
I'm getting the following warnings:

Код:
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Tom\Desktop\sampserver\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
i did search the forums but couldn't find anything about it.
Reply
#2

You have a global variable called "string" in your gamemode / filterscript.
And sscanf has a local variable called "string", so they mix up.

Rename your variable to something else, maybe "gstring"
Reply
#3

OMG that was a stupid one Thnx !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)