Jump to content
  • 0

pomoc jak locknout cas -help


Guest hrdlo

Dotaz

5 odpovědí na tuto otázku

Recommended Posts

  • 0

Zdravím. Taky jsem lama jako tady Hrdlo

Já zkusil ten čas napsat a vůbec mi to nefunguje, asi to bude blbost... :(

 

forward time();

#include

 

// This is a comment

// uncomment the line below if you want to write a filterscript

//#define FILTERSCRIPT

 

#if defined FILTERSCRIPT

 

public OnFilterScriptInit()

{

print("\n--------------------------------------");

print(" Blank Filterscript by your name here");

print("--------------------------------------\n");

return 1;

}

 

public OnFilterScriptExit()

{

return 1;

}

 

#else

 

main()

{

print("\n----------------------------------");

print(" Blank Gamemode by your name here");

print("----------------------------------\n");

}

 

#endif

public OnPlayerConnect(playerid){

SetPlayerArmour(playerid,100);

time();}

 

public time(){

new Text:Clock;

TextDrawDestroy(Clock);

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);}

TextDrawHideForAll(Clock);

Clock=TextDrawCreate(549,24,string);

TextDrawLetterSize(Clock,0.55,2);

TextDrawFont(Clock,3);

TextDrawBackgroundColor(Clock,0x000000AA);

TextDrawSetOutline(Clock,2);

TextDrawShowForAll(Clock);

SetTimer("time",30000,0);

if (hour == 5){SetWorldTime(5);}

 

return 1;

 

}

 

Co je na tom prosím konkrétně špatně? Za odpověď děkuju

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...