Moinsen,
Ich bekomme diesen warning bei meine uhr : D:\Sherif\Server\gamemodes\Selfmade.pwn(535) : warning 219: local variable "minute" shadows a variable at a preceding level
public clock(){
new Text:Clock;
new hour,minute,second;
new string[10];
gettime(hour,minute,second);
format(string, sizeof string, "%s%d:%s%d:%s%d", (hour < 10) ? ("0") : (""), hour, (minute < 10) ? ("0") : (""), minute, (second < 10) ? ("0") : (""), second);
TextDrawHideForAll(Clock);
Clock = TextDrawCreate(542.0, 24.0, string);
TextDrawLetterSize(Clock, 0.6, 1.8);
TextDrawFont(Clock, 3);
TextDrawSetOutline(Clock, 2);
TextDrawShowForAll(Clock);
SetTimer("clock",1000,0);
return 1;
}
mfg