[Pomoc]Oko Text Draw

Započeo Edimax RolePlay, Januar 21, 2011, 18:13:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Evo napravio sam texdraw u Editoru (/text i doradjujes) i snimio sam i nasao u notepad
//TextDraw developed using Zamaroht's in-game TextDraw system

//On top of script:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;

//In OnGameModeInit or any other place, we procced to create our textdraw:
Textdraw0 = TextDrawCreate(231.000000,422.000000,"Diversion Stunt/DM");
Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
Textdraw2 = TextDrawCreate(1.000000,1.000000," ");
TextDrawAlignment(Textdraw0,1);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0x00ff00ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,1.200000,2.000000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,1.000000,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,1.000000,1.000000);
TextDrawColor(Textdraw0,0x0000ffcc);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);

//You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and
//TextDrawDestroy functions to show, hide, and destroy the textdraw.



OK,ocito da to trebam staviti u gamemod sta sam i uradio:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
#include <a_samp>
#include <core>
#include <float>

To sam stavio na vrs Gamemoda Ok,sad ovo treba staviti pod OnGameModeInit:
//textdraw
Textdraw0 = TextDrawCreate(231.000000,422.000000,"Diversion Stunt/DM");
Textdraw1 = TextDrawCreate(1.000000,1.000000," ");
Textdraw2 = TextDrawCreate(1.000000,1.000000," ");
TextDrawAlignment(Textdraw0,1);
TextDrawAlignment(Textdraw1,0);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw0,0x00ff00ff);
TextDrawBackgroundColor(Textdraw1,0x000000ff);
TextDrawBackgroundColor(Textdraw2,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,1.200000,2.000000);
TextDrawFont(Textdraw1,3);
TextDrawLetterSize(Textdraw1,1.000000,1.000000);
TextDrawFont(Textdraw2,3);
TextDrawLetterSize(Textdraw2,1.000000,1.000000);
TextDrawColor(Textdraw0,0x0000ffcc);
TextDrawColor(Textdraw1,0xffffffff);
TextDrawColor(Textdraw2,0xffffffff);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawSetShadow(Textdraw1,1);
TextDrawSetShadow(Textdraw2,1);
Tacnije to sam stavio odmah ispod Objekata i auta!
Sad Compileam,restartujem server,udjem ingame,i TextDrawa nema! ::)!? Sta da radim?
Slika TextDrawa:

poznaticovik

Lol? :D Pa eto ti textdrawa dole "Diversion STUNT/DM" trebas dioptriju il? :D

CitatLol?  Pa eto ti textdrawa dole "Diversion STUNT/DM" trebas dioptriju il?

xD  :D :D :D :D

Gle 1. procitajte pa se onda cirite medjusobno,rekao sam,da to bude kad ja napravim,ali restartujem server i ono nestane,jbt jako stem i cudni! [Trazio sam pomoc kako da mi to ostane,a ne da tu kenjate!]


Citat: RedMan poslato Januar 21, 2011, 22:31:13 POSLE PODNE
TextDrawShowForPlayer?
???
uradis mi to? pa cu ja nasprem toog uraditi drugi?  :P

ovo dodaj ispod OnPLAYERConnect
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);