Warning about a string
#1

Hey Guys,

I'm working on some things in my script and i added a string.
But now i get alot of these warnings:

pawn Код:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level
Does anybody know what they mean?

Thanks
Reply
#2

Quote:
Originally Posted by juuleman
Посмотреть сообщение
Hey Guys,

I'm working on some things in my script and i added a string.
But now i get alot of these warnings:

pawn Код:
(5578) : warning 219: local variable "string" shadows a variable at a preceding level
Does anybody know what they mean?

Thanks
It means theres another one....Just change that string IN THE CODE ITS SHOWING THE ERROR ON change the "String" to "Str"

If you dont understand post the whole code with errors and ill do it for u..
Reply
#3

Change the name of the string array, the error is because you have a global variable and local variable both called string.
Reply
#4

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Change the name of the string array, the error is because you have a global variable and local variable both called string.
Hmm thats why it happens "Tecnically"...Learn something new every day xD
Reply
#5

Thanks for your help, it works.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)