-->How To Fix It?<--
#1

pawn Код:
(4291) : warning 219: local variable "string" shadows a variable at a preceding level
And the line :

pawn Код:
new string[128]; format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) );
Reply
#2

This is why:

pawn Код:
new string[128]; //Global variable

//or

new string[128];
new string[256]; //Two of the same in a function
Just change it to string2 or remove the global variable string and create it back where it is needed.
Reply
#3

Thanks dude.
+repped.
Reply
#4

Good job
Reply
#5

Quote:
Originally Posted by Kindred
Посмотреть сообщение
This is why:

pawn Код:
new string[128]; //Global variable

//or

new string[128];
new string[256]; //Two of the same in a function
Just change it to string2 or remove the global variable string and create it back where it is needed.
ey pal i helpet him wwell donee helpet
Reply
#6

Quote:
Originally Posted by Jay.
Посмотреть сообщение
ey pal i helpet him wwell donee helpet
+1 rep pal
Reply
#7

You got two global and/or local new defined variables/strings that have the same displayed name, therefor they are conflicted.
Change them, and all the things related to em, hope it helps.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)