Detaljan opis problema: E poz nema me 😄 Evo napravio sam nesto za Vreme i datum al kad udjem laguje ko kurac... Msm ko ludo 😄 I sad ne mozes se pomeras kolko laguje i evo msm da je sve ok samo mi je nesto cudno al evo vam ceo kod:
Dio skripte: TAJMER:
forward Vreme();
public Vreme()
{
//*************VREME***************
new sat,minut;
gettime(sat,minut);
new string;
new string2;
if (minut <= 9)
{
format(string,25,"%d:0%d",sat,minut);
}
else
{
format(string,25,"%d:%d",sat,minut);
}
//********DATUM****************
new day,month,year;
getdate(year,month,day);
if (day <= 9){
format(string2,25,"0%d/%d/%d",day,month,year);
}
else if (month <= 9 && day >= 9) {
format(string2,25,"%d/0%d/%d",day,month,year);
}
else {
format(string2,25,"%d/%d/%d",day,month,year);
}
if (sat == 0){SetWorldTime(0);}
if (sat == 1){SetWorldTime(1);}
if (sat == 2){SetWorldTime(2);}
if (sat == 3){SetWorldTime(3);}
if (sat == 4){SetWorldTime(4);}
if (sat == 5){SetWorldTime(5);}
if (sat == 6){SetWorldTime(6);}
if (sat == 7){SetWorldTime(7);}
if (sat == 8){SetWorldTime(8);}
if (sat == 9){SetWorldTime(9);}
if (sat == 10){SetWorldTime(10);}
if (sat == 11){SetWorldTime(11);}
if (sat == 12){SetWorldTime(12);}
if (sat == 13){SetWorldTime(13);}
if (sat == 14){SetWorldTime(14);}
if (sat == 15){SetWorldTime(15);}
if (sat == 16){SetWorldTime(16);}
if (sat == 17){SetWorldTime(17);}
if (sat == 18){SetWorldTime(18);}
if (sat == 19){SetWorldTime(19);}
if (sat == 20){SetWorldTime(20);}
if (sat == 21){SetWorldTime(21);}
if (sat == 22){SetWorldTime(22);}
if (sat == 23){SetWorldTime(23);}
if (sat == 24){SetWorldTime(24);}
for(new i=0;i{
TextDrawHideForPlayer(i,Sat);
TextDrawHideForPlayer(i,Datum);
TextDrawSetString(Sat,string);
TextDrawSetString(Datum,string2);
TextDrawShowForPlayer(i,Sat);
TextDrawShowForPlayer(i,Datum);
}
return 1;
} GAMEMODEINIT
//****************VREME/DATUM
Sat = TextDrawCreate(548.000000, 28.000000, "22:06");
TextDrawBackgroundColor(Sat, 255);
TextDrawLetterSize(Sat,0.450000, 1.400000);
TextDrawFont(Sat,2);
TextDrawColor(Textdraw0, -65281);
TextDrawSetOutline(Sat,1);
TextDrawSetProportional(Textdraw0, 1);
Datum = TextDrawCreate(547.000000, 431.000000, "20/01/1999");
TextDrawBackgroundColor(Datum, 255);
TextDrawLetterSize(Datum, 0.390000, 1.100000);
TextDrawFont(Datum, 3);
TextDrawSetOutline(Datum, 1);
TextDrawSetProportional(Textdraw1, 1);
SetTimer("Vreme", 1, 1);I on playerspawn imam da pokazuje TD
TextDrawShowForPlayer(playerid,Sat);
TextDrawShowForPlayer(playerid,Datum);Neke slike/video za lakse dobivanje pomoci(neobavezno): // Sta ne valja?
