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?