Jump to content
  • 0

pomoc PROBLEM S CASOM PROSIM PORADTE


Guest poblib

Dotaz

OKAMZiTE MI S TYM PADA HRA::::

 

public clock(){

new Text:Clock;

new Text:Date;

new Text:Sekundy;

TextDrawDestroy(Clock);

TextDrawDestroy(Date);

new hour,minute,second;

new string[256];

new string3[256];

gettime(hour,minute,second);

if (minute <= 9){format(string,25,"%d:0%d",hour,minute);}

else {format(string,25,"%d:%d",hour,minute);}

format(string3,25,"%d",second);

TextDrawHideForAll(Clock);

TextDrawHideForAll(Date);

Clock = TextDrawCreate(545.0, 27.0, string);

Date = TextDrawCreate(547.0, 20.0, string99);

Sekundy = TextDrawCreate(595.0,28.0, string3);

TextDrawLetterSize(Clock, 0.499999, 1.400000);

TextDrawLetterSize(Date, 0.2, 1.1);

TextDrawLetterSize(Sekundy, 0.399999,1.0);

TextDrawColor(Sekundy,COLOR_BRED);

TextDrawFont(Clock, 3);

TextDrawFont(Date, 1);

TextDrawFont(Sekundy, 3);

TextDrawSetShadow(Sekundy, 1);

TextDrawSetShadow(Date, 0);

TextDrawSetOutline(Clock, 1);

TextDrawSetOutline(Date, 1);

TextDrawSetOutline(Sekundy,1);

TextDrawShowForAll(Clock);

TextDrawShowForAll(Date);

TextDrawShowForAll(Sekundy);

SetTimer("clock",60000,0);

return 1;

}

 

 

takto mam na nstavenie dna>

public zmenadna()

{

if(den == 7) { den = 1; format(string99,256,"~w~po ~w~ut ~w~str ~w~st pi ~w~so ~r~ne");}

if(den == 1) { den = 2; format(string99,256,"~r~po ~w~ut ~w~str ~w~st pi ~w~so ~w~ne");}

if(den == 2) { den = 3; format(string99,256,"~y~po ~r~ut ~w~str ~w~st pi ~w~so ~w~ne");}

if(den == 3) { den = 4; format(string99,256,"~w~po ~w~ut ~r~str ~w~st pi ~w~so ~w~ne");}

if(den == 4) { den = 5; format(string99,256,"~w~po ~w~ut ~w~str ~r~st ~w~pi ~w~so ~w~ne");}

if(den == 5) { den = 6; format(string99,256,"~w~po ~w~ut ~w~str ~w~st ~r~pi ~w~so ~w~ne");}

if(den == 6) { den = 7; format(string99,256,"~w~po ~w~ut ~w~str ~w~st pi ~r~so ~w~ne");}

return 1;

}

 

takto mam news>

new string99[256];

new den;

 

PROSIM POMOC PADA MI S TYM OKAMZITE HRA

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0

udelej si v tom prehled :d nekdy a potom si to zprav zase zpatky ..

 

public clock()
{
   new Text:Clock;
   new Text:Date;
   new Text:Sekundy;
   TextDrawDestroy(Clock);
   TextDrawDestroy(Date);
   new hour,minute,second;
   new string[256];
   new string3[256];
   gettime(hour,minute,second);
   if (minute <= 9)
{
   format(string,25,"%d:0%d",hour,minute);
}
   else 
{
   format(string,25,"%d:%d",hour,minute);
}
   format(string3,25,"%d",second);
   TextDrawHideForAll(Clock);
   TextDrawHideForAll(Date);

   Clock = TextDrawCreate(545.0, 27.0, string);
   Date = TextDrawCreate(547.0, 20.0, string99);
   Sekundy = TextDrawCreate(595.0,28.0, string3);
   TextDrawLetterSize(Clock, 0.499999, 1.400000);
   TextDrawLetterSize(Date, 0.2, 1.1);
   TextDrawLetterSize(Sekundy, 0.399999,1.0);
   TextDrawColor(Sekundy,COLOR_BRED);
   TextDrawFont(Clock, 3);
   TextDrawFont(Date, 1);
   TextDrawFont(Sekundy, 3);
   TextDrawSetShadow(Sekundy, 1);
   TextDrawSetShadow(Date, 0);
   TextDrawSetOutline(Clock, 1);
   TextDrawSetOutline(Date, 1);
   TextDrawSetOutline(Sekundy,1);
   TextDrawShowForAll(Clock);
   TextDrawShowForAll(Date);
   TextDrawShowForAll(Sekundy);

   SetTimer("clock",60000,0);

return 1;
}

 

mas vubec forwardy : ? ? a ja radsi nemam slov :d

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...