TD probelm

|novi|skr skr Započeo k0c1c.
pre 4 godine
623
pregleda
5
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
|novi|skr skr
Shot Caller
pre 4 godine
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
Godfather
pre 4 godine
PlayerTextDrawSetSelectable(playerid, RegisterTD, 1);

Dodaj ovo
NegativeIQ
Kingpin
pre 4 godine
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
Shot Caller
pre 4 godine
Maxwellâ„¢ wrote on August 11, 2021, 5:56 pm:
PlayerTextDrawSetSelectable(playerid, RegisterTD, 1);

Dodaj ovo

ima vec to
Bokenzi Script
Hustler
pre 4 godine
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