Got 2 warnings when compile
#1

This is the warnings
Код:
(25237) : warning 219: local variable "string" shadows a variable at a preceding level
(28306) : warning 219: local variable "tmpcar" shadows a variable at a preceding level
Line 25237 -
Код:
new string[MAX_STRING];
Line 28306 -
Код:
new tmpcar = GetPlayerVehicleID(playerid);
CAn anyone help me with this warnings
Thank you
Reply
#2

Can you give me a example.. because i am beginner lvl 2
Reply
#3

you have defined these variables somewhere before !
just change the name to like string2
Reply
#4

pawn Код:
// Global Variables
new string[ MAX_STRING ];

public OnGameModeInit( )
{
    new string[ MAX_STRING ]; // you define it again
    // Rest
    return 1;
Result: warning 219: local variable "string" shadows a variable at a preceding level
Reply
#5

Fixed.
What about the second warning?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)