TextDraw wont show
#1

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

bump//...
Reply
#3

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

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);
Reply
#5

what was wrong ?
Reply
#6

u missed a "~"
Reply
#7

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);
Reply
#8

anyone ? --___--
Reply
#9

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)