Jump to content
  • 0

pomoc GetTime


Amenadiel

Dotaz

Anooo po dlouhe době jsem založil topic s Help :d chtel jsem se učit s gettime nikde jsem nevidel ani jeden návod tak se chci zeptat jestli tadle terorie by fungovala

 

new time;
CMD:test (playerid,params[])
{
time = gettime();
time += 20;
return 1;
}

CMD:test2 (playerid,params[])
{
if(gettime() < time)
{
SendClientMessage(playerid,-1,"20 sec ubehlo");
}else{
SendClientMessage(playerid,-1,"20 sec neubehlo");
}
return 1;
}
Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0

Bych to resil takto :

new time;
CMD:kolikjevterin(playerid,params[])
{
	time = gettime();
	return 1;
}
CMD:kolikvterinubehlo(playerid,params[])
{
	if(gettime()-time > 20000) SendClientMessage(playerid,-1,"20 sec ubehlo");
	else SendClientMessage(playerid,-1,"20 sec neubehlo");
	return 1;
}
Link to comment
Share on other sites

  • 0

 

Bych to resil takto :

new time;
CMD:kolikjevterin(playerid,params[])
{
	time = gettime();
	return 1;
}
CMD:kolikvterinubehlo(playerid,params[])
{
	if(gettime()-time > 20) SendClientMessage(playerid,-1,"20 sec ubehlo");
	else SendClientMessage(playerid,-1,"20 sec neubehlo");
	return 1;
}

ano dík byla to jen moje terorie co mě napadla :d

ale pokud se nepletu ta moje terrorie by taky fungovala ne?

Link to comment
Share on other sites

  • 0

A to Atomasove fungovalo?
Nie je to tým, že je to 20 milisekund?
Alebo tým, že si zle zapísal podmienku?
Dal si to totiž naopak tie odpovede.

Link to comment
Share on other sites

  • 0

A to Atomasove fungovalo?

Nie je to tým, že je to 20 milisekund?

Alebo tým, že si zle zapísal podmienku?

Dal si to totiž naopak tie odpovede.

koukal jsem se na wikinu nevyvolalo se nic a 60 je 1 M alespon to tak na wikine bylo

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...