warning
#1

pawn Code:
Код HTML:
E:\GTA\samp03csvr_R2-2_win32\gamemodes\LVDM-Four.pwn(1025) : warning 219: local variable "Name" shadows a variable at a preceding level
E:\GTA\samp03csvr_R2-2_win32\gamemodes\LVDM-Four.pwn(1051) : warning 219: local variable "Name" shadows a variable at a preceding level
E:\GTA\samp03csvr_R2-2_win32\gamemodes\LVDM-Four.pwn(3038) : warning 219: local variable "Name" shadows a variable at a preceding level
E:\GTA\samp03csvr_R2-2_win32\gamemodes\LVDM-Four.pwn(3064) : warning 219: local variable "Name" shadows a variable at a preceding level
E:\GTA\samp03csvr_R2-2_win32\gamemodes\LVDM-Four.pwn(3119) : warning 219: local variable "Name" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Warnings.
Thanks all
Reply
#2

Rename these "Name" variables to something like "pName", or "abcdName".
The script is warning you that you already have "Name" declared, for example:
pawn Код:
new
    name[ 24 ]
    ,name[ 24 ]
;
will give you a warning, so you need to do:
pawn Код:
new
    name[ 24 ]
    ,name2[ 24 ]
;
Get it?
Reply
#3

thanks fixed
Reply
#4

pawn Код:
new file[100],pName2[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName2,sizeof(pName2));
format(file,sizeof(file),PlayerFile,pName2);
EDIT: Oh you edited your post .
Reply
#5

Quote:
Originally Posted by Mean
Посмотреть сообщение
pawn Код:
new file[100],pName2[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName2,sizeof(pName2));
format(file,sizeof(file),PlayerFile,pName2);
EDIT: Oh you edited your post .
senks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)