SA-MP Forums Archive
TextDraw dont show - 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 dont show (/showthread.php?tid=113579)



TextDraw dont show - Vadonis - 14.12.2009

Hi.The problem is: I make a text draw
Код:
new Text:klase; 
klase = TextDrawCreate(10, 370, "Klase"); 
TextDrawLetterSize(Text:klase, 0, 0); 
TextDrawTextSize(Text:klase, 100, 100); 
TextDrawAlignment(Text:klase, 0); 
TextDrawColor(Text:klase, -1); 
TextDrawUseBox(Text:klase, 0); 
TextDrawSetShadow(Text:klase, 0); 
TextDrawBoxColor(Text:klase, -1347440726); 
TextDrawSetOutline(Text:klase, 1); 
TextDrawBackgroundColor(Text:klase, 170); 
TextDrawFont(Text:klase, 2); 
TextDrawSetProportional(Text:klase, 1);
I put it in
Код:
public OnPlayerRequestClass(playerid, classid)
{
  TextDrawShowForPlayer(playerid,Text:opcija);
  gPlayerClass[playerid] = classid;

	switch (classid) {

		case 0,1,2:
		  {
 				
        gTeam[playerid] = TEAM_GANGSTERI;
				if(classid == 0)
			 	{GameTextForPlayer(playerid, "~w~syko", 1000, 3);
			 	SetPlayerColor(playerid,COLOR_GANGSTERI);}
			 	else if(classid == 1)
			 	{GameTextForPlayer(playerid, "~w~Sgt. Dick", 1000, 3);
			 	SetPlayerColor(playerid,COLOR_GANGSTERI);}
			  	else if(classid == 2)
			 	{GameTextForPlayer(playerid, "~w~CHP Reject", 1000, 3);
			 	SetPlayerColor(playerid,COLOR_GANGSTERI);}
			 	
			}
	  case 3,4,5:
	    {
I dont know why it dont hows up.can somebodey help me ?


Re: TextDraw dont show - Deat_Itself - 14.12.2009

this may help you

http://forum.sa-mp.com/index.php?top...7317#msg837317