Textdraw Problem
#1

I have no clue whats wrong with this code but it dosent show up or anything. i cant see the textdraw and i dont have any errors/warns

pawn Код:
public StatsUpdate()
{
new tstring[128];
new playerid
  Textdraw0 = TextDrawCreate(525.000000,304.000000,"Stats information");
  format(tstring, sizeof(tstring), "Level: %d", PlayerInfo[playerid][pLevel]);
  Textdraw1 = TextDrawCreate(527.000000,330.000000,tstring);
  format(tstring, sizeof(tstring), "Phonenumber: %d", PlayerInfo[playerid][pPnumber]);
  Textdraw2 = TextDrawCreate(527.000000,348.000000,tstring);
  format(tstring, sizeof(tstring), "Respect: %d", PlayerInfo[playerid][pExp]);
  Textdraw3 = TextDrawCreate(527.000000,363.000000,tstring);
  format(tstring, sizeof(tstring), "Balance: %d", PlayerInfo[playerid][pAccount]);
  Textdraw4 = TextDrawCreate(526.000000,378.000000,tstring);
  TextDrawTextSize(Textdraw1,2.000000,-43.000000);
  TextDrawBackgroundColor(Textdraw0,0x000000ff);
  TextDrawBackgroundColor(Textdraw1,0x000000ff);
  TextDrawBackgroundColor(Textdraw2,0x000000ff);
  TextDrawBackgroundColor(Textdraw3,0x000000ff);
  TextDrawBackgroundColor(Textdraw4,0x000000ff);
  TextDrawFont(Textdraw0,2);
  TextDrawLetterSize(Textdraw0,0.399999,1.500000);
  TextDrawFont(Textdraw1,2);
  TextDrawLetterSize(Textdraw1,0.299999,1.300000);
  TextDrawFont(Textdraw2,2);
  TextDrawLetterSize(Textdraw2,0.399999,1.200000);
  TextDrawFont(Textdraw3,2);
  TextDrawLetterSize(Textdraw3,0.399999,1.200000);
  TextDrawFont(Textdraw4,2);
  TextDrawLetterSize(Textdraw4,0.299999,1.300000);
  TextDrawColor(Textdraw0,0x00ff0099);
  TextDrawColor(Textdraw1,0x00ffffff);
  TextDrawColor(Textdraw2,0xffff00ff);
  TextDrawColor(Textdraw3,0x00ff0033);
  TextDrawColor(Textdraw4,0xff000066);
}
Reply
#2

Use TextDrawSetString in stead of changing the beginning format.
Reply
#3

Thanks Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)