click textdraw


Započeo M!chaeL, Jul 27, 2018, 20:17:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Stavio sam sve lepo click textdraw, napravio funkciju i kada kliknem nis se ne desi...
Dio skripte: evo funkcija, nema potrebe za td...
if(clickedid == Laptop10)
	{
	    TextDrawHideForPlayer(playerid, Laptop0);
	    TextDrawHideForPlayer(playerid, Laptop1);
	    TextDrawHideForPlayer(playerid, Laptop2);
	    TextDrawHideForPlayer(playerid, Laptop3);
	    TextDrawHideForPlayer(playerid, Laptop4);
	    TextDrawHideForPlayer(playerid, Laptop5);
	    TextDrawHideForPlayer(playerid, Laptop6);
	    TextDrawHideForPlayer(playerid, Laptop7);
	    TextDrawHideForPlayer(playerid, Laptop8);
	    TextDrawHideForPlayer(playerid, Laptop9);
	    TextDrawHideForPlayer(playerid, Laptop10);
	    TextDrawHideForPlayer(playerid, Laptop11);
	    TextDrawShowForPlayer(playerid, google0);
	    TextDrawShowForPlayer(playerid, google1);
	    TextDrawShowForPlayer(playerid, google2);
	    TextDrawShowForPlayer(playerid, google3);
	    TextDrawShowForPlayer(playerid, google4);
	    TextDrawShowForPlayer(playerid, google5);
	    TextDrawShowForPlayer(playerid, google6);
	    TextDrawShowForPlayer(playerid, google7);
	    TextDrawShowForPlayer(playerid, google8);
	    TextDrawShowForPlayer(playerid, google9);
	    TextDrawShowForPlayer(playerid, google10);
	    TextDrawShowForPlayer(playerid, google11);
	    TextDrawShowForPlayer(playerid, google12);
	    TextDrawShowForPlayer(playerid, google13);
	    TextDrawShowForPlayer(playerid, google14);
	    TextDrawShowForPlayer(playerid, google15);
	    TextDrawShowForPlayer(playerid, google16);
	    TextDrawShowForPlayer(playerid, google17);
	    TextDrawShowForPlayer(playerid, google18);
	    TextDrawShowForPlayer(playerid, google19);
	    TextDrawShowForPlayer(playerid, google20);
	    TextDrawShowForPlayer(playerid, google21);
	    TextDrawShowForPlayer(playerid, google22);
	    TextDrawShowForPlayer(playerid, google23);
		return 1;
	}

ovo je jedan primer, imam jos ovih click tda ali ne rade...
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Stavi text size na textdrawove
Software Developer


Citat: Unkovic poslato Jul 31, 2018, 18:26:03 POSLE PODNE
Sta lolas imbecilu? Covek ti je lepo rekao? Da znas da uradis i da umes ne bi postavljao ovde. Daj nam to gde kreiras TD
"Genije" na kom textdrawu nema text size?

Gdje pozivas stvaranje i Selecg?
Posalji nam to i textdrawcreate dio

Je l imas TextDrawSetSelectable na tod tdu sto treba da kliknes?

Citat: PazzOnee poslato Avgust 01, 2018, 08:54:01 PRE PODNE
Je l imas TextDrawSetSelectable na tod tdu sto treba da kliknes?
Naravno

Citat: Slade poslato Avgust 01, 2018, 01:13:09 PRE PODNE
Gdje pozivas stvaranje i Selecg?
Posalji nam to i textdrawcreate dio
mislis select?
Ovo ti je select ako si na to mislio
TextDrawSetSelectable(Laptop0, true);

inc ovaj deo msm da nije isti kao sto je u clicktextdrawu koji sam ostavio, znaci dao sam neki random primer, posto mi ni jedan svakako ne radi...
Laptop0 = TextDrawCreate(26.500000, 205.625000, "Counter Strike Global Offensive");

Ako bas treba primer iz gore navedene funkcije clicktextdraw kazi te dacu

Da mislio sam Select, na mobilnom sam


Posalji cijeli dio gdje je select (komandu ili sto je)
Posalji sve kod kreiranja tda,  ne samo textdrawcreate

Citat: Slade poslato Avgust 01, 2018, 21:15:14 POSLE PODNE
Da mislio sam Select, na mobilnom sam


Posalji cijeli dio gdje je select (komandu ili sto je)
Posalji sve kod kreiranja tda,  ne samo textdrawcreate
eo komanda sa kojom se dolazi do tog click tda
YCMD:laptop(playerid,params[],help)
{
    if(UlogovanProvera[playerid] == 0) return SCM(playerid, -1, ""CRVENA"[ERROR] "SIVA"Moras se ulogovati da bi koristio ovu komandu!");
	new i = PlayerInfo[playerid][Kuce];
	TogglePlayerControllable(playerid, true);
	Frezovan[playerid] = 1;
	TextDrawHideForPlayer(playerid,Textdraw1);
	TextDrawHideForPlayer(playerid,Textdraw2);
	TextDrawHideForPlayer(playerid,Textdraw3);
	TextDrawHideForPlayer(playerid,Textdraw4);
	TextDrawHideForPlayer(playerid,Textdraw5);
	TextDrawHideForPlayer(playerid,Textdraw6);
	TextDrawHideForPlayer(playerid,Textdraw7);
	TextDrawHideForPlayer(playerid,Textdraw8);
	TextDrawHideForPlayer(playerid,Textdraw9);
	TextDrawHideForPlayer(playerid,Textdraw10);
	TextDrawHideForPlayer(playerid,Textdraw11);
	TextDrawHideForPlayer(playerid,Textdraw12);
	TextDrawHideForPlayer(playerid,Textdraw13);
	TextDrawHideForPlayer(playerid,Textdraw14);
	TextDrawHideForPlayer(playerid,Logo1);
	TextDrawHideForPlayer(playerid,Logo2);
	TextDrawHideForPlayer(playerid,Logo3);
	TextDrawHideForPlayer(playerid,Logo4);
	TextDrawHideForPlayer(playerid,Logo5);
	TextDrawShowForPlayer(playerid,Laptop0);
	TextDrawShowForPlayer(playerid,Laptop1);
	TextDrawShowForPlayer(playerid,Laptop2);
	TextDrawShowForPlayer(playerid,Laptop3);
	TextDrawShowForPlayer(playerid,Laptop4);
	TextDrawShowForPlayer(playerid,Laptop5);
	TextDrawShowForPlayer(playerid,Laptop6);
	TextDrawShowForPlayer(playerid,Laptop7);
	TextDrawShowForPlayer(playerid,Laptop8);
	TextDrawShowForPlayer(playerid,Laptop9);
	TextDrawShowForPlayer(playerid,Laptop10);
	SelectTextDraw(playerid, 0x00FF00FF);
	return 1;
}
[pawn]
A ovo je primer za jedan od tdova (click tdova)
[pawn]   	Laptop0 = TextDrawCreate(26.500000, 205.625000, "Counter Strike Global Offensive");
	TextDrawLetterSize(Laptop0, 0.571500, 3.043747);
	TextDrawAlignment(Laptop0, 1);
	TextDrawColor(Laptop0, -2139094785);
	TextDrawSetShadow(Laptop0, 0);
	TextDrawSetOutline(Laptop0, 1);
	TextDrawBackgroundColor(Laptop0, 51);
	TextDrawFont(Laptop0, 2);
	TextDrawSetProportional(Laptop0, 1);
    TextDrawSetSelectable(Laptop0, true);

TextDrawTextSize(Laptop0, 621.000000, 0.000000);


Dodaj ispod TextDrawCreate i probaj radi li.

Citat: Slade poslato Avgust 02, 2018, 00:15:14 PRE PODNE
TextDrawTextSize(Laptop0, 621.000000, 0.000000);


Dodaj ispod TextDrawCreate i probaj radi li.
Opet ne radi

TextDrawTextSize(Laptop0, 100.000000, 100.000000);


Probaj ovako

Citat: Slade poslato Avgust 03, 2018, 01:32:06 PRE PODNE
TextDrawTextSize(Laptop0, 100.000000, 100.000000);


Probaj ovako
Kad sam dodao to povecali su mi se tdovi i pojebali (pomesali) i opet se nista ne desava

TextDrawTextSize(Laptop0, 50.000000, 10.000000);
TextDrawUseBox(Laptop0, 1);
TextDrawBoxColor(Laptop0, 0);