17.02.2010, 15:45
Hi; I try to create a circle with one textdraw (0) like this:
This is almost a circle lol, it's made with paint i'll make this in pawn with textdraws.. But it fails
This is my textdraw:
This is what I tried:
But I still only see one textdraw.
Anyone can make a new one or correct the one I made?
Regards,
This is almost a circle lol, it's made with paint i'll make this in pawn with textdraws.. But it fails
This is my textdraw:
Код:
Textdraw0 = TextDrawCreate(509.000000, 344.000000, "0"); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.500000, 1.000000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1);
Код:
new Float:v; while(v < 360.0) { Textdraw0 = TextDrawCreate(5 * (509.0 + floatcos(v, degrees)), 5* (344.0 + floatsin(v, degrees)), "0"); v += (360.0 / (5 * 1.09)); } TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 1); TextDrawLetterSize(Textdraw0, 0.500000, 1.000000); TextDrawColor(Textdraw0, -1); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1);
Anyone can make a new one or correct the one I made?
Regards,