[PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
.Skool_. - 10.12.2011
Уla, eu queria uma contagem regressiva em TEXTDRAW para o ano novo.. E quando der meia noite ( 00:00hrs ) " na virada do ano " ele se apague automaticamente..!
EXEMPLO:
pawn Код:
Falta(m): HORAS:MINUTOS:SEGUNDOS para o ano novo!
ou
pawn Код:
Contagem regressiva: (AS HORAS/MINUTOS/SEGUNDOS MESMO NORMAL)
eu prefiro o 1 exemplo mais se fizer o 2 eu agradeзo muito..
Obrigado, se me ajudar dou reputation. Desde jб agradeзo
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
dPlaYer_ - 10.12.2011
Cria um textdrawn e atualiza ele todo dia '-' + facil -q
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
.Skool_. - 10.12.2011
Quote:
Originally Posted by [LF]PlaYer
Cria um textdrawn e atualiza ele todo dia '-' + facil -q
|
sei kkk....
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
Lуs - 10.12.2011
Search:
https://sampforum.blast.hk/showthread.php?tid=297567
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
.Skool_. - 11.12.2011
Quote:
Originally Posted by Los
|
Lуs, deu certinho mais encontrei um erro durante o teste..
Meus objetos nгo carregam, eu uso o incognitos streamer, uso em FS..
Serб que talvez tem haver com OnFilterScriptInit da contagem?
pawn Код:
public OnFilterScriptInit()
{
NYCounter = TextDrawCreate(357.000000, 399.000000, "_");
TextDrawAlignment(NYCounter, 2);
TextDrawBackgroundColor(NYCounter, 255);
TextDrawFont(NYCounter, 2);
TextDrawLetterSize(NYCounter, 0.40000, 2);
TextDrawColor(NYCounter, -16776961);
TextDrawSetOutline(NYCounter, 1);
TextDrawSetProportional(NYCounter, 1);
new message[40], year, month, day;
getdate(year, month, day);
if(month != 1) { year--; }
#if defined German
format(message, sizeof(message), "~>~ Feliz ano novo ~<~~n~~y~%d!", year);
#else
format(message, sizeof(message), "~>~ Happy new year ~<~~n~~y~%d!", year);
#endif
HappyNewYearText = TextDrawCreate(340.000000, 350.000000, message);
TextDrawAlignment(HappyNewYearText, 2);
TextDrawBackgroundColor(HappyNewYearText, 255);
TextDrawFont(HappyNewYearText, 1);
TextDrawLetterSize(HappyNewYearText, 1.000000, 4.000000);
TextDrawColor(HappyNewYearText, 16777215);
TextDrawSetOutline(HappyNewYearText, 1);
TextDrawSetProportional(HappyNewYearText, 1);
CounterTimer();
cTime = SetTimer("CounterTimer", 400, 1);
return 1;
}
Ajude-me por favor..
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
Lуs - 11.12.2011
Quote:
Originally Posted by .Skool_.
Lуs, deu certinho mais encontrei um erro durante o teste..
Meus objetos nгo carregam, eu uso o incognitos streamer, uso em FS..
Serб que talvez tem haver com OnFilterScriptInit da contagem?
pawn Код:
public OnFilterScriptInit() { NYCounter = TextDrawCreate(357.000000, 399.000000, "_"); TextDrawAlignment(NYCounter, 2); TextDrawBackgroundColor(NYCounter, 255); TextDrawFont(NYCounter, 2); TextDrawLetterSize(NYCounter, 0.40000, 2); TextDrawColor(NYCounter, -16776961); TextDrawSetOutline(NYCounter, 1); TextDrawSetProportional(NYCounter, 1);
new message[40], year, month, day; getdate(year, month, day); if(month != 1) { year--; } #if defined German format(message, sizeof(message), "~>~ Feliz ano novo ~<~~n~~y~%d!", year); #else format(message, sizeof(message), "~>~ Happy new year ~<~~n~~y~%d!", year); #endif HappyNewYearText = TextDrawCreate(340.000000, 350.000000, message); TextDrawAlignment(HappyNewYearText, 2); TextDrawBackgroundColor(HappyNewYearText, 255); TextDrawFont(HappyNewYearText, 1); TextDrawLetterSize(HappyNewYearText, 1.000000, 4.000000); TextDrawColor(HappyNewYearText, 16777215); TextDrawSetOutline(HappyNewYearText, 1); TextDrawSetProportional(HappyNewYearText, 1);
CounterTimer(); cTime = SetTimer("CounterTimer", 400, 1); return 1; }
Ajude-me por favor..
|
Acho muito difнcil, pois a textdraw tem pouca coisa haver com objetos, procure ultima modificaзгo que fez. Se os objetos estiverem em FS, tente passa-los para o GM.
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
.Skool_. - 11.12.2011
Quote:
Originally Posted by Los
Acho muito difнcil, pois a textdraw tem pouca coisa haver com objetos, procure ultima modificaзгo que fez. Se os objetos estiverem em FS, tente passa-los para o GM.
|
EU jб fiz isso, mais alguns objetos nem carrega com o incogntos streamer.... EU adorei o streamer por causa que ele coloca objtos nos mundos virutais...
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
Lуs - 11.12.2011
Quote:
Originally Posted by .Skool_.
EU jб fiz isso, mais alguns objetos nem carrega com o incogntos streamer.... EU adorei o streamer por causa que ele coloca objtos nos mundos virutais...
|
Tente verificar se a streamer estб carregando ou algo do tipo, й que nunca tive esse tipo de problema.
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
Lуs - 11.12.2011
Poste o server log
Re: [PEDIDO]: Contagem regressiva ano novo em TEXTDRAW -
Lуs - 11.12.2011
Quote:
Originally Posted by Los
Poste o server log
|
....