10.04.2012, 15:35
I have noticed that player text draws represented in 0.3e are slightly inaccurate than normal text draws. I cannot confirm if it is LetterSize or something else.
I used this code, converted results to player text draws.
I used this code, converted results to player text draws.
pawn Код:
new Float:nextd = 360 / 14;
new Float:radius = 40.0;
new Float:centerx = 570.0;
new Float:centery = 380.0;
new Float:startx = 550.0;
new Float:starty = 414.641021;
new Float:nextdd = nextd*(-1);
new str[10];
new Text:Draws[14];
for(new i = 0; i < 14; i++)
{
startx = centerx - radius * floatcos(nextdd, degrees);
starty = centery - radius * floatsin(nextdd, degrees);
if(nextdd >= 360) nextdd = 0;
nextdd += nextd;
format(str, 10, "%d", 0 + i*10);
printf("clockdraw[playerid][%d] = CreatePlayerTextDraw(playerid, %f, %f, \"%s\");", i, startx, starty, str);
Draws[i] = TextDrawCreate(startx, starty, str);
TextDrawFont(Draws[i], 2);
TextDrawLetterSize(Draws[i], 0.250000, 1.100000);
TextDrawSetShadow(Draws[i], 0);
TextDrawAlignment(Draws[i], 2);
TextDrawShowForPlayer(playerid, Draws[i]);
}