WTF?!
#3

Код:
warning 219: local variable "Year" shadows a variable at a preceding level
This means that you have created a global array or integer named "Year".
The command compiles fine in my script (after changing MSG to SendClientMessage, and C_RED to a color I have defined in my script).

Try removing that line:
pawn Код:
CMD:test(playerid,params[]){
gettime(Hour,Second,Minute);
getdate(Day, Month, Year);
format(String, sizeof(String),"Time: %i:%i:%i | Date: %i/%i/%i",Hour,Minute,Second,Day,Month,Year);
MSG(playerid,C_RED,String);
return 1;}
Reply


Messages In This Thread
WTF?! - by Lirbo - 23.07.2015, 12:40
Re: WTF?! - by Gazzy - 23.07.2015, 12:45
Re: WTF?! - by liquor - 23.07.2015, 12:46
AW: WTF?! - by Mencent - 23.07.2015, 12:47
Re: WTF?! - by liquor - 23.07.2015, 12:49
Re: WTF?! - by Crystallize - 23.07.2015, 12:56
Re: WTF?! - by Gazzy - 23.07.2015, 12:58
Re: WTF?! - by Overhaul - 23.07.2015, 13:06
Re: AW: WTF?! - by Lirbo - 23.07.2015, 13:22
Re: WTF?! - by Crystallize - 23.07.2015, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)