I cant fix these warning :S
#1

Hello all!

Ive set this:

pawn Код:
new string [256];
new pName[MAX_PLAYER_NAME];

And I get this :S :

pawn Код:
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(177) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(178) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(187) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(187) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Warnings.

Why?
Reply
#2

You have already declared those variables on a global scale, try giving them slightly alternative names.
Reply
#3

What you mean?

How?
Reply
#4

These variables already exists.
Remove these lines or rename the variables.
Reply
#5

Ok, It cant be there twice I just adde it, What to rename it?
Reply
#6

Anything you like
Reply
#7

But I cant Coz, Its asked me to define the pName, So I did it, How to rename it than?, It will ask again.
Reply
#8

Quote:
Originally Posted by Taz86
Ok, It cant be there twice I just adde it, What to rename it?
What does it matter? just rename it to other variable name.
Hebrew - pashut teshane et hashemot shel hamishtanim, veze yetukan
Reply
#9

Like here: Im deleting it :


pawn Код:
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(359) : error 017: undefined symbol "pName"
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(359) : error 017: undefined symbol "pName"
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(359) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\щемзп дтбегд\$CES$\gamemodes\CES.pwn(359) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply
#10

It wants me to define the NAME PName, So I didnt understand how I can rename them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)