ERROR! PLEASE HELP
#1

ERROR:
Код:
C:\Users\Dominykas\Desktop\Freeroam\filterscripts\gADMIN.pwn(60) : warning 219: local variable "pName" shadows a variable at a preceding level
LINE:
pawn Код:
new pName[MAX_PLAYER_NAME]
Reply
#2

delete that line,
Reply
#3

If i delete it
i get new error
its:
Код:
C:\Users\Dominykas\Desktop\Freeroam\filterscripts\gADMIN.pwn(61) : error 076: syntax error in the expression, or invalid function call
and the line is:
pawn Код:
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
Reply
#4

pawn Код:
new pName[MAX_PLAYER_NAME];
to:
pawn Код:
new pNamee[MAX_PLAYER_NAME]
and
pawn Код:
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
to:
pawn Код:
GetPlayerName(playerid,pNamee,MAX_PLAYER_NAME);
The warning just means that you already have a variable called 'pName'. Just call it differently.
Reply
#5

THANKS.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)