TextDraw dont show
#1

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 ?
Reply
#2

this may help you

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


Forum Jump:


Users browsing this thread: 1 Guest(s)