Jump to content
  • 0

pomoc odpočet


Soliter

Dotaz

7 odpovědí na tuto otázku

Recommended Posts

  • 0

v prikazu spustis timer na sekundu, vytvoris prommenou a nastavis na 4.

 

if(promena > 1)
{
promena--;
SEM DAS STRING + FORMAT + GAMETEXT na zobrazeni (viz. v podpisu muj tut format)
}
else if(promena == 1)
{
GAMETEXT - KONEEEC
promena = 0;
}

Link to comment
Share on other sites

  • 0
if(sekundy>1)
{
if(sekundy>1)
	format(string,sizeof(string),"_~n~_~n~_~n~_~n~~r~%d",sekundy);
else if(sekundy==1)
	format(string,sizeof(string),"_~n~_~n~_~n~_~n~~y~%d",sekundy);
else
	format(string,sizeof(string),"_~n~_~n~_~n~_~n~~g~GO");

GameTextForPlayer(playerid,string,2000,6);
sekundy--;
}

Link to comment
Share on other sites

  • 0

ved bzučo mu sem nedal cely kód

dal mu časť ;)

 

btw nebolo by lepšie takto ?

 

  
if(sekundy>0)//čiže 1,2,3..
     format(string,sizeof(string),"_~n~_~n~_~n~_~n~~r~%d",sekundy);
  else
     format(string,sizeof(string),"_~n~_~n~_~n~_~n~~g~GO");

  GameTextForPlayer(playerid,string,2000,6);
  sekundy--;

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