textdraw doesn't show
#1

Hello! I have an info bar....on down the screen....if is player on foot all is good....but if is player a driver the bar doesn't show anything, just textdrawbox, if on the bar is normal text, bar shows it, but if i'll use a paramets "s" or "%d" doesnt show anything just textdrawbox

here's code:
Код:
TextDrawHideForPlayer(playerid,informacja2[playerid]);
	format(string,sizeof(string),"~p~Nick: ~b~~h~%s ~y~~h~| ~p~ID: ~b~~h~%d ~y~~h~| ~p~Respekt: ~b~~h~%d ~y~~h~| ~p~Ping: ~b~~h~%d ~y~~h~| ~p~/Tri: ~b~~h~%d/2",PlayerNames(playerid), playerid, GetPlayerScore(playerid), GetPlayerPing(playerid),TP);
	TextDrawSetString(Text:informacja[playerid],string);
 	TextDrawShowForPlayer(playerid,informacja[playerid]);
	if( P_DATA[ playerid ][ P_InDM ])
  		{
  		    TextDrawHideForPlayer(playerid,informacja[playerid]);
		  	new stringp[256];
  			format(stringp,sizeof(stringp),"~p~Nick: ~b~~h~%s ~y~~h~| ~p~ID: ~b~~h~%d ~y~~h~| ~p~Respekt: ~b~~h~%d ~y~~h~| ~p~Ping: ~b~~h~%d ~y~~h~| ~p~KillStreak: ~b~~h~%d",PlayerNames(playerid), playerid, GetPlayerScore(playerid), GetPlayerPing(playerid),P_DATA[playerid][P_kSpree]);
			TextDrawSetString(Text:informacja2[playerid],stringp);
			TextDrawShowForPlayer(playerid,informacja2[playerid]);
		}

	}
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
	TextDrawHideForPlayer(playerid,informacja[playerid]);
	format(strings111,sizeof(strings111)," Pojazd: %s  ",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
	TextDrawSetString(Text:informacja2[playerid],strings111);
	TextDrawShowForPlayer(playerid,informacja2[playerid]);
	}
Reply
#2

Код:
format(strings111,sizeof(strings111)," Pojazd: %s  ",VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400]);
here if I've VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400] that after " , " that doesnt show anything expect thexdrawbox. if I've just "pojazd" that the inscription is showed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)