Der warningcode:
C:\Users\Oliver\Desktop\Mein Server\gamemodes\Script.pwn(958 : warning 235: public function lacks forward declaration (symbol "time")
public time(playerid)
{
new hour,minute,second;
gettime(hour,minute,second);
new string[256];
if (minute <= 9)
{
format(string,25,"%d:0%d",hour,minute);
}
else
{
format(string,25,"%d:%d",hour,minute);
}
if (hour == 1){SetWorldTime(1);}
if (hour == 2){SetWorldTime(2);}
if (hour == 3){SetWorldTime(3);}
if (hour == 4){SetWorldTime(4);}
if (hour == 5){SetWorldTime(5);}
if (hour == 6){SetWorldTime(6);}
if (hour == 7){SetWorldTime(7);}
if (hour == 8){SetWorldTime(8);}
if (hour == 9){SetWorldTime(9);}
if (hour == 10){SetWorldTime(10);}
if (hour == 11){SetWorldTime(11);}
if (hour == 12){SetWorldTime(12);}
if (hour == 13){SetWorldTime(13);}
if (hour == 14){SetWorldTime(14);}
if (hour == 15){SetWorldTime(15);}
if (hour == 16){SetWorldTime(16);}
if (hour == 17){SetWorldTime(17);}
if (hour == 18){SetWorldTime(18);}
if (hour == 19){SetWorldTime(19);}
if (hour == 20){SetWorldTime(20);}
if (hour == 21){SetWorldTime(21);}
if (hour == 22){SetWorldTime(22);}
if (hour == 23){SetWorldTime(23);}
if (hour == 24){SetWorldTime(24);}
for(new i=0;i<MAX_PLAYERS;i++)
{
TextDrawHideForPlayer(i,Clock);
TextDrawSetString(Clock,string);
TextDrawShowForPlayer(i,Clock);
}
return 1;
}
zeile 958 ist die
public timer()