Help with this TextDraw.
#1

Well I made a textdraw that displays your fps and it only show it for a quick second then it goes back to 0 and it keeps doing that. I don't know whats wrong.

Код:
new Text:FPS;

FPS = TextDrawCreate(497.000000, 163.000000, "FPS:");
TextDrawBackgroundColor(FPS, 255);
TextDrawFont(FPS, 3);
TextDrawLetterSize(FPS, 0.500000, 1.000000);
TextDrawColor(FPS, -65281);
TextDrawSetOutline(FPS, 0);
TextDrawSetProportional(FPS, 1);
TextDrawSetShadow(FPS, 1);

public OnPlayerUpdate(playerid)
{
   new string[128];
   new fps;
   fps = GetPlayerFPS(playerid);
   format(string, sizeof string, "FPS: %d", fps);
   TextDrawSetString(FPS, string);
   return 1;
}
Reply


Messages In This Thread
Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 20:16
Re: Help with this TextDraw. - by Mike Garber - 16.04.2011, 20:22
Re: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 20:24
AW: Help with this TextDraw. - by Nero_3D - 16.04.2011, 22:14
Re: Help with this TextDraw. - by Stigg - 16.04.2011, 22:19
Re: AW: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 22:26
AW: Re: AW: Help with this TextDraw. - by Nero_3D - 16.04.2011, 23:53
Re: AW: Re: AW: Help with this TextDraw. - by TheYoungCapone - 16.04.2011, 23:58
AW: Re: AW: Re: AW: Help with this TextDraw. - by Nero_3D - 17.04.2011, 00:51

Forum Jump:


Users browsing this thread: 2 Guest(s)