Problem(error/warning): Nece mi TD kad kliknem.
Dio skripte:
Ovo je za klik
[pawn] if(playertextid == StatsTD[playerid])
{
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"UP:RP | "CRVENA"Moras se ulogovati da bi koristio ovu
komandu!");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "UP:RP | "CRVENA"Ne mozete gledati stats dok ste u vozilu!");
KreirajStats(playerid);
return 1;
}
[/pawn]
Evo i td
[pawn] StatsTD[playerid] = CreatePlayerTextDraw(playerid, 528.761779, 435.626617, "STATS");
PlayerTextDrawTextSize(playerid, StatsTD[playerid], 5.165428, 5.691200);
PlayerTextDrawLetterSize(playerid, StatsTD[playerid], 0.165428, 0.691200);
PlayerTextDrawAlignment(playerid, StatsTD[playerid], 1);
PlayerTextDrawColor(playerid, StatsTD[playerid], -862387969);
PlayerTextDrawSetShadow(playerid, StatsTD[playerid], 0);
PlayerTextDrawSetOutline(playerid, StatsTD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, StatsTD[playerid], 51);
PlayerTextDrawFont(playerid, StatsTD[playerid], 2);
PlayerTextDrawSetProportional(playerid, StatsTD[playerid], 1);
PlayerTextDrawSetSelectable(playerid, StatsTD[playerid], true);[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/lAT99u0
https://wiki.sa-mp.com/wiki/SelectTextDraw
Citat: Shomyy poslato Mart 04, 2020, 20:14:53 POSLE PODNE
https://wiki.sa-mp.com/wiki/SelectTextDraw
Isto .. ne menja se boja ko sto pise da treba
fixano