Jump to content
  • 0

pomoc PlayerTextDraw


Om3n

Dotaz

Zdravim. po hodne dlouhy dobe zakladam help, jelikoz s timhle nemam moc zkusenot. jedna se o PlayerTextDraw jak jiz nazev naznacuje.

stock UpdateBOS(playerid)
{
	
	if(GetPVarInt(playerid,"Spawned") == 1)
	{
        new bostext[128];
		PlayerTextDrawDestroy(playerid,pStats[playerid]);
		format(bostext, sizeof(bostext), "%d~n~%d~n~%s~n~%f",pInfo[playerid][LVL],pInfo[playerid][XP],pInfo[playerid][GID],pInfo[playerid][PYC] );
		pStats[playerid] = CreatePlayerTextDraw(playerid,47.000000, 359.000000, bostext);
		PlayerTextDrawBackgroundColor(playerid,pStats[playerid], 255);
		PlayerTextDrawFont(playerid,pStats[playerid], 2);
		PlayerTextDrawLetterSize(playerid,pStats[playerid], 0.250000, 1.100000);
		PlayerTextDrawColor(playerid,pStats[playerid], -1);
		PlayerTextDrawSetOutline(playerid,pStats[playerid], 0);
		PlayerTextDrawSetProportional(playerid,pStats[playerid], 1);
		PlayerTextDrawSetShadow(playerid,pStats[playerid], 1);
//		SendClientMessage(playerid,-1,"UpdateBOS");
	}
}

prilozeny kod je spousten timerem, problem je ze se vubec nezobrazi. kdyz sem to pouzival soucasne s includem aCMenu tak mi prepisoval string prvniho PlayerTextDrawu. kdyz sem aCMenu predelal aby cely fungovalo pres klasickej TD a ne jako PTD, tak se stejne zminovany kod v poradku spousti ale nezobrazuje se ten PlayerTextDraw. Mate s tim nekdo nejakou zkusenost?

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

:d :D :d :D predelaval sem to tolikrat ze na tohle sem fakt uplne zapomnel :d :D :d dekuju moc :d tedka trochu premejslim jestli se na to radsi nemam vykaslat, ale ne, ja to dam :d

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...