textdraw doesn't show - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: textdraw doesn't show (
/showthread.php?tid=372187)
textdraw doesn't show -
imosek - 25.08.2012
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]);
}
Re: textdraw doesn't show -
imosek - 25.08.2012
Код:
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