Quick easy question.
#1

How to fix this?

warning 219: local variable "string" shadows a variable at a preceding level

this is the line:
PHP код:
new name[MAX_PLAYERS], string[48]; 
Reply
#2

You must not declare the same variable twice.(globally or in a callback)
Reply
#3

Quote:
Originally Posted by moadi
Посмотреть сообщение
You must not declare the same variable twice.(globally or in a callback)
When i delete it , more errors.
Reply
#4

Quote:
Originally Posted by remyguys
Посмотреть сообщение
When i delete it , more errors.
Oh, you don't have to delete one.. just edit one of them.
Reply
#5

Quote:
Originally Posted by moadi
Посмотреть сообщение
Oh, you don't have to delete one.. just edit one of them.
To what
Reply
#6

Quote:
Originally Posted by remyguys
Посмотреть сообщение
To what
If you have two variable with the same name, e.g
pawn Код:
new string[128];
new string[128];
edit one of them..
pawn Код:
new string[128];
new string1[128];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)