Jump to content

Recommended Posts

Posted

daca vrei sa folosesti ESC pentru a iesi dintr-un textdraw, ai functia OnPlayerClickTextDraw si sub if-ul de mai jos adaugi conditia ta:

if(clickedid == Text:INVALID_TEXT_DRAW){
	<conditii>
}

 

 

 

 

Posted
3 hours ago, Gabi. said:

daca vrei sa folosesti ESC pentru a iesi dintr-un textdraw, ai functia OnPlayerClickTextDraw si sub if-ul de mai jos adaugi conditia ta:

if(clickedid == Text:INVALID_TEXT_DRAW){
	<conditii>
}

 

Multumesc! voi incerca

Posted (edited)

Eu iti recomand metoda asta,e mult mai simpla. Schimbi tu numele la "Nume_Textdraw" cu numele pe care-l are textdraw-u' tau.

new realtimer[MAX_PLAYERS];
La OnPlayerDisconnect: KillTimer(realtimer[playerid]);
stock HideLoginTextDraws(playerid)
{
  for(new i; i<sizeof(Nume_Textdraw); i++)
  {
    TextDrawHideForPlayer(playerid, Nume_Textdraw[i]);
  }
  CancelSelectTextDraw(playerid);
  KillTimer(realtimer[playerid]);
}

 

Edited by XarrowAdv
  • Thanks 1
Posted
17 hours ago, XarrowAdv said:

Eu iti recomand metoda asta,e mult mai simpla. Schimbi tu numele la "Nume_Textdraw" cu numele pe care-l are textdraw-u' tau.

new realtimer[MAX_PLAYERS];
La OnPlayerDisconnect: KillTimer(realtimer[playerid]);
stock HideLoginTextDraws(playerid)
{
  for(new i; i<sizeof(Nume_Textdraw); i++)
  {
    TextDrawHideForPlayer(playerid, Nume_Textdraw[i]);
  }
  CancelSelectTextDraw(playerid);
  KillTimer(realtimer[playerid]);
}

 

 multumesc

Posted
On 3/14/2023 at 10:04 PM, XarrowAdv said:

Eu iti recomand metoda asta,e mult mai simpla. Schimbi tu numele la "Nume_Textdraw" cu numele pe care-l are textdraw-u' tau.

new realtimer[MAX_PLAYERS];
La OnPlayerDisconnect: KillTimer(realtimer[playerid]);
stock HideLoginTextDraws(playerid)
{
  for(new i; i<sizeof(Nume_Textdraw); i++)
  {
    TextDrawHideForPlayer(playerid, Nume_Textdraw[i]);
  }
  CancelSelectTextDraw(playerid);
  KillTimer(realtimer[playerid]);
}

 

de ce un timer!? knd il poate face la INVALID_TEXT_DRAW, cu un PVar !?

 

 

Posted
35 minutes ago, DanielSy said:

de ce un timer!? knd il poate face la INVALID_TEXT_DRAW, cu un PVar !?

pt ca n are idee ce a copiat acolo, si a deviat de la ce a intrebat respectivu

Posted (edited)
4 hours ago, DanielSy said:

de ce un timer!? knd il poate face la INVALID_TEXT_DRAW, cu un PVar !?

Scuza-ma,se scrie "cand". Si pentru ca asa vreau eu. Problema a fost rezolvata,caz inchis. Nu mai comentati sa faceti +1 post,e o prostie.

Edited by XarrowAdv
Posted (edited)
3 hours ago, Sancky said:

pt ca n are idee ce a copiat acolo, si a deviat de la ce a intrebat respectivu

Am avut,si inca am. Nu vad ce rost mai are acum sa va spuneti parerile. Problema a fost rezolvata,caz inchis. 

Edited by XarrowAdv
Posted
15 hours ago, XarrowAdv said:

Scuza-ma,se scrie "cand". Si pentru ca asa vreau eu. Problema a fost rezolvata,caz inchis. Nu mai comentati sa faceti +1 post,e o prostie.

 inca n ati auzit de y_timers 😿

 

 

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.