What is warning 219 mean?
#1

i I create a log file. But i get a warning, What happened?

warning 219: local variable "h" shadows a variable at a preceding level
[pwna]

new pname[256],IP[16];
new h;new mins;new sec;new y,m,d;
new str[256];new stringer[256];
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerIp(playerid,IP,16);
getdate(y,m,d);gettime(h,mins,sec);
format(str,256,"-online-[%02d:%02d:%02d]- %s %s %d \r\n",h,mins,sec,IP,pname,playerid);
format(stringer,256,"\/%d-%d-%d player .txt",y,m,d);
new File:FILE = fopen(stringer,io_append);
fwrite(FILE,str);
fclose(FILE);

[/pwan]

Reply
#2

That you have "h" defined somewhere else :P Change it to like h2 and change gettime(h to gettime(h2 and so on.. :P
Reply
#3

Quote:
Originally Posted by Fj0rtizFredde
That you have "h" defined somewhere else :P Change it to like h2 and change gettime(h to gettime(h2 and so on.. :P
So, i create some Variable?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)