Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

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]);


			
		
Posted

In loc de 

TextDrawDestroy(TruckerDrive[playerid]);

foloeste 

TextHideForPlayer(TruckerDrive[playerid]);

 

j3V8Znq.png

5IGyOAw.png

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

Posted

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);

 

 

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

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.