Kako Ubaciti TextDraw

Započeo .белић, Januar 28, 2018, 20:41:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Pozz Danas cu vam pokazati kako da ubacite TD u svoj mod  :P

Pre svega morate imati neke TD-ove mozete ih naci ovde na Forumu pod "TextDraws"

Pa da krenemo :D

Definisemo TD-ove
[pawn]new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
new Text:Textdraw20;
new Text:Textdraw21;
new Text:Textdraw22;
new Text:Textdraw23;
new Text:Textdraw24;
new Text:Textdraw25; // Koliko god imate TD-ova toliko i definisete[/pawn]

Zatim nadjemo u modu kako su definisani Td-ovi i samo idemo CTRL + F pa trazimo npr Textdraw0

Kada nadjete samo zamenite njihovo dajem sad primer ovo

[pawn]Textdraw0 = TextDrawCreate(184.500000, 429.899993, "usebox");
   TextDrawLetterSize(Textdraw0, 0.000000, 1.798889);
   TextDrawTextSize(Textdraw0, -2.000000, 0.000000);
   TextDrawAlignment(Textdraw0, 1);
   TextDrawColor(Textdraw0, 0);
   TextDrawUseBox(Textdraw0, true);
   TextDrawBoxColor(Textdraw0, 16777215);
   TextDrawSetShadow(Textdraw0, 0);
   TextDrawSetOutline(Textdraw0, 0);
   TextDrawFont(Textdraw0, 0);[/pawn]

Naravno sve zamenite sa vasim i bice vam spojeno sa strane, oznacite i samo kliknite tab i odvojice vam se.

Sada idemo na smorniji deo, pod OnPlayerSpawn nadjete gde je TextDrawShowForPlayer ili ako nema samo dodajte ovo

[pawn]TextDrawShowForPlayer(playerid,Textdraw0);[/pawn]

Sada cemo dodati za svaki TD posebno

[pawn]TextDrawShowForPlayer(playerid,Textdraw0);
   TextDrawShowForPlayer(playerid,Textdraw1);
   TextDrawShowForPlayer(playerid,Textdraw2);
   TextDrawShowForPlayer(playerid,Textdraw3);
   TextDrawShowForPlayer(playerid,Textdraw4);
   TextDrawShowForPlayer(playerid,Textdraw5);
   TextDrawShowForPlayer(playerid,Textdraw6);
   TextDrawShowForPlayer(playerid,Textdraw7);
   TextDrawShowForPlayer(playerid,Textdraw8);
   TextDrawShowForPlayer(playerid,Textdraw9);
   TextDrawShowForPlayer(playerid,Textdraw10);
   TextDrawShowForPlayer(playerid,Textdraw11);
   TextDrawShowForPlayer(playerid,Textdraw12);
   TextDrawShowForPlayer(playerid,Textdraw13);
   TextDrawShowForPlayer(playerid,Textdraw14);
   TextDrawShowForPlayer(playerid,Textdraw15);
   TextDrawShowForPlayer(playerid,Textdraw16);
   TextDrawShowForPlayer(playerid,Textdraw17);
   TextDrawShowForPlayer(playerid,Textdraw18);
   TextDrawShowForPlayer(playerid,Textdraw19);
   TextDrawShowForPlayer(playerid,Textdraw20);
   TextDrawShowForPlayer(playerid,Textdraw21);
   TextDrawShowForPlayer(playerid,Textdraw22);
   TextDrawShowForPlayer(playerid,Textdraw23);
   TextDrawShowForPlayer(playerid,Textdraw24);
   TextDrawShowForPlayer(playerid,Textdraw25);[/pawn]

I To je cela prica oko TD-ova, ako imate neki error ili nesto napisite komentar pa cu vam pomoci :D Pozz do sledeceg puta
Hejtanje u krvi!

Oduvek sam se pitao:
"Zbog cega se ljudi toliko brinu jedni za druge?",
"Zasto ljudi daju sve od sebe da usrece neku osobu?"

Najjednostavnije receno brinu se jer vole tu osobu celim svojim srcem,
daju sve od sebe da je usrece zbog toga sto ne zele da je ikada vide tuznom ili rasplakanom.
#xsarnaaparatima..


Citat: Belic poslato Januar 28, 2018, 20:47:55 POSLE PODNE
Aha nisam video  :(
Pa mogao bi da otvoris malo oci i da prelistas forum.
Oduvek sam se pitao:
"Zbog cega se ljudi toliko brinu jedni za druge?",
"Zasto ljudi daju sve od sebe da usrece neku osobu?"

Najjednostavnije receno brinu se jer vole tu osobu celim svojim srcem,
daju sve od sebe da je usrece zbog toga sto ne zele da je ikada vide tuznom ili rasplakanom.
#xsarnaaparatima..


Au koliko bespotrebnih stvari...


new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;
new Text:Textdraw17;
new Text:Textdraw18;
new Text:Textdraw19;
new Text:Textdraw20;
new Text:Textdraw21;
new Text:Textdraw22;
new Text:Textdraw23;
new Text:Textdraw24;
new Text:Textdraw25;


Sve ovo moze da stane u jedan index new Text:Textdraw[ 26 ];


TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
TextDrawShowForPlayer(playerid,Textdraw5);
TextDrawShowForPlayer(playerid,Textdraw6);
TextDrawShowForPlayer(playerid,Textdraw7);
TextDrawShowForPlayer(playerid,Textdraw8);
TextDrawShowForPlayer(playerid,Textdraw9);
TextDrawShowForPlayer(playerid,Textdraw10);
TextDrawShowForPlayer(playerid,Textdraw11);
TextDrawShowForPlayer(playerid,Textdraw12);
TextDrawShowForPlayer(playerid,Textdraw13);
TextDrawShowForPlayer(playerid,Textdraw14);
TextDrawShowForPlayer(playerid,Textdraw15);
TextDrawShowForPlayer(playerid,Textdraw16);
TextDrawShowForPlayer(playerid,Textdraw17);
TextDrawShowForPlayer(playerid,Textdraw18);
TextDrawShowForPlayer(playerid,Textdraw19);
TextDrawShowForPlayer(playerid,Textdraw20);
TextDrawShowForPlayer(playerid,Textdraw21);
TextDrawShowForPlayer(playerid,Textdraw22);
TextDrawShowForPlayer(playerid,Textdraw23);
TextDrawShowForPlayer(playerid,Textdraw24);
TextDrawShowForPlayer(playerid,Textdraw25);


Sve to u jednu liniju - for(new i; i < 26; i++) { TextDrawShowForPlayer(playerid, Textdraw[ i ]); }

Facebook - Klik



Sve je moglo stati u jednu liniju, a ne kao Å¡to si ti pravio. Al' ajd, dobar tut, pohvale.

Ja sam ovaj nazovimo ga 'tutorial' gledao ovako

Pre svega....Zatim....Pre svega...Sada...I to je cela prica.
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |

Ne znam sa tdovima ali pohvale za trud