Jump to content

Problema textdraw


Gawitkkk

Recommended Posts

Salut tuturor ! Am şi eu o mică problemă cu câteva textdraw-uri, respectiv.. textdraw-urile job-ului Trucker.

După ce eşuez misiunea (părăsind vehiculul) nu mai primesc înapoi textdraw-urile, adică nu îmi apar când folosesc următoarele dăţi comanda /work.

 

Video: https://www.youtube.com/watch?v=8w1rrxzr568&feature=youtu.be

 

Am folosit următoarele funcţii pentru a crea textdraw-urile:

 

TruckerDrive[i] = TextDrawCreate(226.500000, 364.000000, "Drive the truck to the checkpoint.");
        TextDrawLetterSize(TruckerDrive[i], 0.395499, 1.363750);
        TextDrawAlignment(TruckerDrive[i], 1);
        TextDrawColor(TruckerDrive[i], -1);
        TextDrawSetShadow(TruckerDrive[i], 0);
        TextDrawSetOutline(TruckerDrive[i], 1);
        TextDrawBackgroundColor(TruckerDrive[i], 51);
        TextDrawFont(TruckerDrive[i], 1);
        TextDrawSetProportional(TruckerDrive[i], 1);


 

Atunci când părăsesc vehicului şi eşuez, mă folosesc de următoarea funcţie pentru a face textdraw-urile să dispară:

TextDrawDestroy(TruckerDrive[playerid]);


			
		
Link to comment
Share on other sites

10 hours ago, EquiNox said:

In loc de 


TextDrawDestroy(TruckerDrive[playerid]);

foloeste 


TextHideForPlayer(TruckerDrive[playerid]);

 

Daca folosesc funcţia asta, după ce selectez altă rută, se suprapun textdraw-urile.

 

Adică textdraw-ul ăsta apare lângă altul, ce e altă locaţie..

Link to comment
Share on other sites

Ce-ai dat acolo sus e doar un textdraw , daca crezi ca poti , foloseste

//
 

Quote

 

forward PlayerCheck();

PlayerCheck()

 

Si fa o verificare cu la enumeratiile de la player adauga verificarea pTrucking[playerid] = 0/1 , si asta o sa te ajute la toate viitoarele tale probleme de genul.

Ex :
 

Quote

 

if (PlayerInfo[pTrucking] = 0)

TextDrawHideForPlayer(playerid , textdraw);

 

 

Link to comment
Share on other sites

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.

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