25.08.2012, 18:07
(
Последний раз редактировалось imosek; 25.08.2012 в 18:49.
)
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:
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]);
}

