TextDraw with string.
#1

Hi, is it possible to change this:
Код:
		if(Speedo[playerid] && IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
		    new string[64], speed = GetVehicleSpeed(GetPlayerVehicleID(playerid), 0);
		    format(string,sizeof(string),"~n~~n~~n~~n~~n~~n~~n~~n~~r~Speed: %d KM/H", speed);
			GameTextForPlayer(playerid, string,1000, 3);
To let's say... This?
Код:
         format(string,sizeof(string),"Speed: %d KM/H", speed);
        TextDrawCreate(605.000000, 140.000000, string);
	TextDrawFont(SpeedTD,1);
	TextDrawSetShadow(SpeedTD,0);
	TextDrawSetOutline(SpeedTD,1);
	TextDrawAlignment(SpeedTD,3);
	TextDrawLetterSize(SpeedTD, 0.450000, 1.300000);
	TextDrawColor(SpeedTD,0x075e11FF);
Would it work, and if it would, any way of getting it to work?
Reply
#2

In you first code, it checks if the player is in a vehicle and driver. But on the second code, it doesn't. So you will face some problems I guess.
Reply
#3

TextDrawSetString
Reply
#4

Thanks cookiemonster, if I wouldn't be finnish, I would bake you a box of cookies, hope this +rep will turn in to a cookie.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)