Pitanje/Savjet


Započeo nik0la_._, Maj 15, 2021, 20:20:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Znaci ne da mi se da ubacim textdraw-ove...
Deo skripte:
Vaš odgovor

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Vaš odgovor

Slika - https://prnt.sc/12yx13w
Poslednja Izmena: Maj 16, 2021, 02:53:33 PRE PODNE od M Ө M Σ N Z I

nauce se osnove pa se radi nesto, cisto da ti dam savet neki

Citat: Dejan (dekszy) poslato Maj 15, 2021, 20:50:16 POSLE PODNE
nauce se osnove pa se radi nesto, cisto da ti dam savet neki
Hvala na savjetu, da li znas ti da ovo fix-as ili ne? xd  :D

Citat: nik0la_._ poslato Maj 15, 2021, 20:59:45 POSLE PODNE
Hvala na savjetu, da li znas ti da ovo fix-as ili ne? xd  :D
Znam ja ali i ti treba da znas jer su to osnove bukv..
Imas napravljen array za TDEditor_PTD i trebao bi koristiti ovako npr

new PlayerText: TDEditor_PTD[MAX_PLAYERS][2];

TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 495.512695, 360.333374, "LD_SPAC:white");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 144.000000, 89.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -266333697);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 0);

TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 496.612762, 361.333435, "LD_SPAC:white");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 142.000000, 85.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 0);


jasnije?

EDIT: ti si napravio array i nisi ga koristio, koristio si samo TDEditor_PTD[playerid] a treba TDEditor_PTD[playerid][index]

Citat: Dejan (dekszy) poslato Maj 15, 2021, 21:05:53 POSLE PODNE
Znam ja ali i ti treba da znas jer su to osnove bukv..
Imas napravljen array za TDEditor_PTD i trebao bi koristiti ovako npr

new PlayerText: TDEditor_PTD[MAX_PLAYERS][2];

TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 495.512695, 360.333374, "LD_SPAC:white");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][0], 144.000000, 89.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -266333697);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 0);

TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 496.612762, 361.333435, "LD_SPAC:white");
PlayerTextDrawTextSize(playerid, TDEditor_PTD[playerid][1], 142.000000, 85.000000);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 4);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 0);


jasnije?

EDIT: ti si napravio array i nisi ga koristio, koristio si samo TDEditor_PTD[playerid] a treba TDEditor_PTD[playerid][index]

Hvala,...  ;) :D