SA-MP Forums Archive
TextDraw wont 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)
+--- Thread: TextDraw wont show (/showthread.php?tid=481073)



TextDraw wont show - FireWarrior101 - 14.12.2013

My textdraw wont show on player Connect
pawn Код:
new Text:callofduty;
//on gamemodinit
//textdraw Call of duty
callofduty = TextDrawCreate(29.000000,9.000000,"~h~r~Call OF Duty Opposing Fronts");
TextDrawAlignment(callofduty,0);
TextDrawFont(callofduty,3);
TextDrawLetterSize(callofduty,1.100000,3.399999);
TextDrawSetOutline(callofduty,1);
TextDrawSetProportional(callofduty,1);
TextDrawSetShadow(callofduty,1);
//On player connect
TextDrawShowForplayer(playerid,callofduty);
Can someone point out why it is not working


Re: TextDraw wont show - FireWarrior101 - 14.12.2013

bump//...


Re: TextDraw wont show - s0nic - 14.12.2013

Just by looking at it have you tried to fix this:
Код:
~h~r~Call OF Duty Opposing Fronts
Its missing a ~


Re: TextDraw wont show - Raza2013 - 14.12.2013

Wrong Format
Quote:
Originally Posted by FireWarrior101
Посмотреть сообщение
My textdraw wont show on player Connect
pawn Код:
new Text:callofduty;
//on gamemodinit
//textdraw Call of duty
callofduty = TextDrawCreate(29.000000,9.000000,"~h~r~Call OF Duty Opposing Fronts");
TextDrawAlignment(callofduty,0);
TextDrawFont(callofduty,3);
TextDrawLetterSize(callofduty,1.100000,3.399999);
TextDrawSetOutline(callofduty,1);
TextDrawSetProportional(callofduty,1);
TextDrawSetShadow(callofduty,1);
//On player connect
TextDrawShowForplayer(playerid,callofduty);
Correct Format
Quote:
Originally Posted by FireWarrior101
Посмотреть сообщение
My textdraw wont show on player Connect
pawn Код:
new Text:callofduty;
//on gamemodinit
//textdraw Call of duty
callofduty = TextDrawCreate(29.000000,9.000000,"~h~~r~Call OF Duty Opposing Fronts");
TextDrawAlignment(callofduty,0);
TextDrawFont(callofduty,3);
TextDrawLetterSize(callofduty,1.100000,3.399999);
TextDrawSetOutline(callofduty,1);
TextDrawSetProportional(callofduty,1);
TextDrawSetShadow(callofduty,1);
//On player connect
TextDrawShowForPlayer(playerid,callofduty);



Re: TextDraw wont show - FireWarrior101 - 14.12.2013

what was wrong ?


Re: TextDraw wont show - newbie scripter - 14.12.2013

u missed a "~"


Re: TextDraw wont show - FireWarrior101 - 14.12.2013

Then can someone tell me why this isnt working
pawn Код:
new Text:blacktd;//Black screen textdraw

//on gamemod
  //Black screen textdraw
    blacktd = TextDrawCreate(650.000000, 0.000000, "New Textdraw");
    TextDrawBackgroundColor(blacktd, 0);
    TextDrawFont(blacktd, 1);
    TextDrawLetterSize(blacktd, 0.010000, 30.400001);
    TextDrawColor(blacktd, -1);
    TextDrawSetOutline(blacktd, 0);
    TextDrawSetProportional(blacktd, 1);
    TextDrawSetShadow(blacktd, 1);
    TextDrawUseBox(blacktd, 1);
    TextDrawBoxColor(blacktd, 0x000000C8);

//on player connect
   TextDrawShowForPlayer(playerid, blacktd);
//On player spawn
   TextDrawHideForPlayer(playerid,blacktd);



Re: TextDraw wont show - FireWarrior101 - 14.12.2013

anyone ? --___--


Re: TextDraw wont show - newbie scripter - 14.12.2013

if u want a per player TD then do like i say
pawn Код:
new PlayerText:blacktd[MAX_PLAYERS];

// OnPlayerConnect
blacktd[playerid] = PlayerTextDrawCreate(650.000000, 0.000000, "New Textdraw");
    PlayerTextDrawBackgroundColor(blacktd, 0);
    PlayerTextDrawFont(blacktd, 1);
    PlayerTextDrawLetterSize(blacktd, 0.010000, 30.400001);
    PlayerTextDrawColor(blacktd, -1);
    PlayerTextDrawSetOutline(blacktd, 0);
    PlayerTextDrawSetProportional(blacktd, 1);
    PlayerTextDrawSetShadow(blacktd, 1);
    PlayerTextDrawUseBox(blacktd, 1);
    PlayerTextDrawBoxColor(blacktd, 0x000000C8);
// and remove the code on GMinit


//on player connect
   PlayerTextDrawShow(playerid, blacktd[playerid]);
//On player spawn
   PlayerTextDrawHide(playerid,blacktd[playerid]);