TD probelm

Započeo k0c1c.
11. Avg. 2021. Zaključano
648
pregleda
5
postova
|novi|skr skr
4
Shot Caller
11. Avg. 2021.
Problem(error/warning):Sredio sam full register sistem i dodao sam PlayerTextDrawTextSize zbog boljeg selektovanja kada sam to dodao td uopste nece da se selektuje a sve sam lepo podesio
Deo skripte:
PlayerTextDrawTextSize(playerid, RegisterTD, 30.000000, 30.000000);
Nitro
5
Godfather
11. Avg. 2021.
PlayerTextDrawSetSelectable(playerid, RegisterTD, 1);

Dodaj ovo
NegativeIQ
5
Kingpin
11. Avg. 2021.
Da napomenem jednu jako bitnu stvar. Textdraw sistem u samp-u nema veze s mozgom, i jako je jeben sto se tice logike (nema je).
Recimo pocetne koordinate su gore levo, ali ako koristis alignment right onda su u stvari gore desno iz nekog razloga.
Samo cu da quote sa open.mp wiki (sto je u stvari copy/paste sa starog sa-mp wiki).

The x and y have different meanings with different TextDrawAlignment values: 1 (left): they are the right-most corner of the box, absolute coordinates. 2 (center): they need to inverted (switch the two) and the x value is the overall width of the box. 3 (right): the x and y are the coordinates of the left-most corner of the box

Using font type 4 (sprite) and 5 (model preview) converts X and Y of this function from corner coordinates to WIDTH and HEIGHT (offsets). The TextDraw box starts 10.0 units up and 5.0 to the left as the origin (TextDrawCreate coordinate). This function defines the clickable area for use with TextDrawSetSelectable, whether a box is shown or not.


Kao sto vidis, X i Y coordinate menjaju svoje znacenje od tipa alignment tipa. Plus da ne pricamo o gluposti 640x480 pixela tabeli...
|novi|skr skr
4
Shot Caller
12. Avg. 2021.
Maxwellâ„¢ wrote on August 11, 2021, 5:56 pm:
PlayerTextDrawSetSelectable(playerid, RegisterTD, 1);

Dodaj ovo

ima vec to
Bokenzi Script
3
Hustler
13. Avg. 2021.
Sjeban je td textsize pogotovo ako koristis onaj drugi font, probaj textsize povecati npr ovako:
PlayerTextDrawTextSize(playerid, RegisterTD, 320.000000, 30.000000);


I onda ako radi postepeno smanjivati.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha