SA-MP Forums Archive
Textdraw help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw help (/showthread.php?tid=254670)



Textdraw help - boyan96 - 12.05.2011

why my textdraw don't show me this is the code

PHP код:
new Text:clan2;
 
//========CLAN==--------------------
    
clan2 TextDrawCreate(635.0,10.0,"~b~YOUR ~w~CLAN");
    
TextDrawUseBox(clan2,0);
    
TextDrawAlignment(clan2,3);
    
TextDrawBoxColor(clan2,0x000000FF);
    
TextDrawFont(clan23);
    
TextDrawLetterSize(clan20.401.1);
    
TextDrawBackgroundColor(clan2,0x000000AA);
    
TextDrawColor(clan2,0xFF0000CC);
    
TextDrawSetOutline(clan2,1);
    
TextDrawSetShadow(clan2,1); 



Re: Textdraw help - iJumbo - 12.05.2011

have you used TextDrawShowForPlayer whereu want the textdraw get showed ?


Re: Textdraw help - park4bmx - 12.05.2011

you will need to use

TextDrawShowForPlayer(playerid,clan2);
put that under OnPlayerSpawn or Connect whenever you want to show the textdraw to the player

WIKI:=: https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer


Re: Textdraw help - boyan96 - 12.05.2011

i have this error (307 : error 010: invalid function or declaration

clan2 = TextDrawCreate(635.0,10.0,"~b~YOUR ~w~CLAN");


Re: Textdraw help - serman - 12.05.2011

Код:
Top of the Script :
new Text:clan2;
Under OnGameModeInit or Filterscript ...
 //========CLAN==--------------------
    clan2 = TextDrawCreate(635.0,10.0,"~b~YOUR ~w~CLAN");
    TextDrawUseBox(clan2,0);
    TextDrawAlignment(clan2,3);
    TextDrawBoxColor(clan2,0x000000FF);
    TextDrawFont(clan2, 3);
    TextDrawLetterSize(clan2, 0.40, 1.1);
    TextDrawBackgroundColor(clan2,0x000000AA);
    TextDrawColor(clan2,0xFF0000CC);
    TextDrawSetOutline(clan2,1);
    TextDrawSetShadow(clan2,1); 

Under OnPlayerSpawn or OnPlayerConnect
   TextDrawShowForPlayer(playerid, clan2);
try this ...