Ne ocitavaju se textdrawowi

Započeo SanelPandzic, Septembar 02, 2019, 09:35:16 PRE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Problem(error/warning): Imam problem oko Player Textdrawowa zelim da uradim pecanje sisem al da se preca preko tda.Ali iz nekog razloga mi nece ocitati sve textdrawowe samo ocita box nece ostalo sto sam napravio.I kada ukucam /pecaj znaci pojavi mi se box i neka plava linija koju nisam ja napravio u tdeditor nit u skripti to ima.Dole imate sve kodove.Imate i sliku isto da to vidite
Deo skripte:new na pocetku skripte
new PlayerText:TDPecanje[9][MAX_PLAYERS];

stock za kreiranje playertextdrawa
stock KreirajTDPecanje(playerid)
{
  	TDPecanje[playerid][0] = CreatePlayerTextDraw(playerid, 363.500000, 188.687500, "box");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][0], 0.000000, 6.449992);
	PlayerTextDrawTextSize(playerid, TDPecanje[playerid][0], 506.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][0], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][0], -1);
	PlayerTextDrawUseBox(playerid, TDPecanje[playerid][0], 1);
	PlayerTextDrawBoxColor(playerid, TDPecanje[playerid][0], 255);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][0], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][0], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][0], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][0], 1);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][0], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][0], 0);

	TDPecanje[playerid][1] = CreatePlayerTextDraw(playerid, 360.500000, 201.375000, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][1], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDPecanje[playerid][1], 148.000000, 3.000000);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][1], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][1], 41215);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][1], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][1], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][1], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][1], 4);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][1], 0);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][1], 0);

	TDPecanje[playerid][2] = CreatePlayerTextDraw(playerid, 409.000000, 187.812500, "PECANJE");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][2], 0.294999, 1.088124);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][2], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][2], -1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][2], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][2], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][2], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][2], 2);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][2], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][2], 0);

	TDPecanje[playerid][3] = CreatePlayerTextDraw(playerid, 361.500000, 226.750000, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][3], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDPecanje[playerid][3], 145.000000, 4.000000);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][3], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][3], 41215);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][3], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][3], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][3], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][3], 4);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][3], 0);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][3], 0);

	TDPecanje[playerid][4] = CreatePlayerTextDraw(playerid, 479.500000, 210.125000, "UPECALI STE:NISTA");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][4], 0.216499, 0.961251);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][4], 3);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][4], -1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][4], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][4], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][4], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][4], 2);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][4], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][4], 0);

	TDPecanje[playerid][5] = CreatePlayerTextDraw(playerid, 478.000000, 235.062500, "JOS 100 SEKUNDI");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][5], 0.272000, 1.088124);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][5], 3);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][5], -1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][5], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][5], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][5], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][5], 1);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][5], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][5], 0);

	TDPecanje[playerid][6] = CreatePlayerTextDraw(playerid, 400.500000, 248.625000, "box");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][6], 0.000000, 1.749999);
	PlayerTextDrawTextSize(playerid, TDPecanje[playerid][6], 474.000000, 0.000000);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][6], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][6], -1);
	PlayerTextDrawUseBox(playerid, TDPecanje[playerid][6], 1);
	PlayerTextDrawBoxColor(playerid, TDPecanje[playerid][6], 255);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][6], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][6], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][6], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][6], 1);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][6], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][6], 0);

	TDPecanje[playerid][7] = CreatePlayerTextDraw(playerid, 417.000000, 250.375000, "Pecaj");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][7], 0.338999, 1.394375);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][7], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][7], -1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][7], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][7], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][7], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][7], 2);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][7], 1);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][7], 0);

	TDPecanje[playerid][8] = CreatePlayerTextDraw(playerid, 398.000000, 246.437500, "LD_SPAC:white");
	PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][8], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, TDPecanje[playerid][8], 77.000000, 3.000000);
	PlayerTextDrawAlignment(playerid, TDPecanje[playerid][8], 1);
	PlayerTextDrawColor(playerid, TDPecanje[playerid][8], 41215);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][8], 0);
	PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][8], 0);
	PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][8], 255);
	PlayerTextDrawFont(playerid, TDPecanje[playerid][8], 4);
	PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][8], 0);
	PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][8], 0);
	return 1;
}

Pojavljivanje Tdova i sklanjane tdova
stock PrikazPecanjeTD(playerid)
{
   	PlayerTextDrawShow(playerid, TDPecanje[0][playerid]); PlayerTextDrawShow(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[2][playerid]); PlayerTextDrawShow(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[4][playerid]); PlayerTextDrawShow(playerid, TDPecanje[5][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[6][playerid]); PlayerTextDrawShow(playerid, TDPecanje[7][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[8][playerid]);
	return 1;
}
stock UkloniPecanjeTD(playerid)
{
    PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	return 1;
}

Ovo sam dodao u onplayerconnect
KreirajTDPecanje(playerid);

Evo komanda
YCMD:pecaj(playerid,params[],help)
{
   //if(PlayerInfo[playerid][pPecanjeAlat] < 1) SCM(playerid,-1,"[BE:RP]Nemate Alat za pecanje!");
   	if(IsPlayerInRangeOfPoint(playerid, 3.0, 403.8601,-2088.1582,7.8359))
	{
		PrikazPecanjeTD(playerid);
		SCM(playerid,-1,"[BE:RP]Da biste poceli sa pecanjem pritisnite na textdrawu PECAJ");
		SelectTextDraw(playerid, COLOR_RED);
	}
   return 1;
}

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)https://imgur.com/a/BcXcclf
Poslednja Izmena: Septembar 03, 2019, 17:34:57 POSLE PODNE od Bašovski

Deklaraciju prebaci u new PlayerText:TDPecanje[MAX_PLAYERS][9];

TDPecanje[playerid][0] = CreatePlayerTextDraw(playerid, 363.500000, 188.687500, "box");

PlayerTextDrawShow(playerid, TDPecanje
  • [playerid][/b][/color]);

    promjeni show i hide u

    PlayerTextDrawShow(playerid, TDPecanje[playerid][INDEX]);




    i ovo mozes za show i hide u petlju prebaciti later-on

    for (new i = 0; i < sizeof(TDPecanje[]); i++) {
        PlayerTextDrawShow(playerid, TDPecanje[playerid][i]);
    }
    
Poslednja Izmena: Septembar 02, 2019, 10:26:24 PRE PODNE od Ino42O
Software Developer

Citat: Ino42O poslato Septembar 02, 2019, 10:24:09 PRE PODNE
Deklaraciju prebaci u new PlayerText:TDPecanje[MAX_PLAYERS][9];

TDPecanje[playerid][0] = CreatePlayerTextDraw(playerid, 363.500000, 188.687500, "box");

PlayerTextDrawShow(playerid, TDPecanje
  • [playerid][/b][/color]);

    promjeni show i hide u

    PlayerTextDrawShow(playerid, TDPecanje[playerid][INDEX]);




    i ovo mozes za show i hide u petlju prebaciti later-on

    for (new i = 0; i < sizeof(TDPecanje[]); i++) {
        PlayerTextDrawShow(playerid, TDPecanje[playerid][i]);
    }
    

Opet je isto evo vako sam stavio
definicija na pocetku
new PlayerText:TDPecanje[MAX_PLAYERS][9];

prikaz i sakrivanje stock
stock UkloniPecanjeTD(playerid)
{
    PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);

	return 1;
}
stock PrikazPecanjeTD(playerid)
{
    PlayerTextDrawShow(playerid, TDPecanje[0][playerid]); PlayerTextDrawShow(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[2][playerid]); PlayerTextDrawShow(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[4][playerid]); PlayerTextDrawShow(playerid, TDPecanje[5][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[6][playerid]); PlayerTextDrawShow(playerid, TDPecanje[7][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[8][playerid]);
	return 1;
}

komanda
YCMD:pecaj(playerid,params[],help)
{
   //if(PlayerInfo[playerid][pPecanjeAlat] < 1) SCM(playerid,-1,"[BE:RP]Nemate Alat za pecanje!");
   	if(IsPlayerInRangeOfPoint(playerid, 3.0, 403.8601,-2088.1582,7.8359))
	{
		PrikazPecanjeTD(playerid);
		SCM(playerid,-1,"[BE:RP]Da biste poceli sa pecanjem pritisnite na textdrawu PECAJ");
		SelectTextDraw(playerid, COLOR_RED);
	}
   return 1;
}

Citat: SanelPandzic poslato Septembar 02, 2019, 12:16:09 POSLE PODNE
Opet je isto evo vako sam stavio
definicija na pocetku
new PlayerText:TDPecanje[MAX_PLAYERS][9];

prikaz i sakrivanje stock
stock UkloniPecanjeTD(playerid)
{
    PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);

	return 1;
}
stock PrikazPecanjeTD(playerid)
{
    PlayerTextDrawShow(playerid, TDPecanje[0][playerid]); PlayerTextDrawShow(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[2][playerid]); PlayerTextDrawShow(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[4][playerid]); PlayerTextDrawShow(playerid, TDPecanje[5][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[6][playerid]); PlayerTextDrawShow(playerid, TDPecanje[7][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[8][playerid]);
	return 1;
}

komanda
YCMD:pecaj(playerid,params[],help)
{
   //if(PlayerInfo[playerid][pPecanjeAlat] < 1) SCM(playerid,-1,"[BE:RP]Nemate Alat za pecanje!");
   	if(IsPlayerInRangeOfPoint(playerid, 3.0, 403.8601,-2088.1582,7.8359))
	{
		PrikazPecanjeTD(playerid);
		SCM(playerid,-1,"[BE:RP]Da biste poceli sa pecanjem pritisnite na textdrawu PECAJ");
		SelectTextDraw(playerid, COLOR_RED);
	}
   return 1;
}


Tebra ne mozes ovako sa tom deklaracijom mora da ti izgleda ovako code
PlayerTextDrawShow(playerid, TDPecanje[playerid][0]);


Prvo ide [playerid] pa broj a ne broj pa playerid

Kod tebe je ovako
[3][playerid]
A treba da bude
[playerid][3]

One And Only
Old Member
Since AVGUST 2013. :)
GAME OVER - SCRIPTING
SINCE 2009 - 2020

Citat: SanelPandzic poslato Septembar 02, 2019, 12:16:09 POSLE PODNE
Opet je isto evo vako sam stavio
definicija na pocetku
new PlayerText:TDPecanje[MAX_PLAYERS][9];

prikaz i sakrivanje stock
stock UkloniPecanjeTD(playerid)
{
    PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[0][playerid]); PlayerTextDrawHide(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[2][playerid]); PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawHide(playerid, TDPecanje[3][playerid]);

	return 1;
}
stock PrikazPecanjeTD(playerid)
{
    PlayerTextDrawShow(playerid, TDPecanje[0][playerid]); PlayerTextDrawShow(playerid, TDPecanje[1][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[2][playerid]); PlayerTextDrawShow(playerid, TDPecanje[3][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[4][playerid]); PlayerTextDrawShow(playerid, TDPecanje[5][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[6][playerid]); PlayerTextDrawShow(playerid, TDPecanje[7][playerid]);
	PlayerTextDrawShow(playerid, TDPecanje[8][playerid]);
	return 1;
}

komanda
YCMD:pecaj(playerid,params[],help)
{
   //if(PlayerInfo[playerid][pPecanjeAlat] < 1) SCM(playerid,-1,"[BE:RP]Nemate Alat za pecanje!");
   	if(IsPlayerInRangeOfPoint(playerid, 3.0, 403.8601,-2088.1582,7.8359))
	{
		PrikazPecanjeTD(playerid);
		SCM(playerid,-1,"[BE:RP]Da biste poceli sa pecanjem pritisnite na textdrawu PECAJ");
		SelectTextDraw(playerid, COLOR_RED);
	}
   return 1;
}


nisi procitao moju cijelu poruku:

PlayerTextDrawShow(playerid, TDPecanje
  • [playerid][/b][/color]);

    promjeni show i hide u

    PlayerTextDrawShow(playerid, TDPecanje[playerid][INDEX]);




    ovako:

    stock UkloniPecanjeTD(playerid)
    {
        for (new i = 0; i < sizeof(TDPecanje[]); i++) {
            PlayerTextDrawHide(playerid, TDPecanje[playerid][i]);
        }
        return 1;
    }
    stock PrikazPecanjeTD(playerid)
    {
        for (new i = 0; i < sizeof(TDPecanje[]); i++) {
            PlayerTextDrawShow(playerid, TDPecanje[playerid][i]);
        }
        return 1;
    }
    
Software Developer

Našao lanmi koji ne zna šta je INDEX da objašnjava joj balkanu
My tutorials: y_inline & y_dialog, Ternary Operator, y_flooding, y_bit, samp-logger, Pawn Plus I Deo ( Dynamic Strings ), Map Zones, TextDraw Buttons, y_iterate, easyDialog, samp-plugin-timerfix
My includes: TextDraw Buttons


Respect: Bunta, Vedran, Ivan Bagarić, Itz.Yansi, Rade Ćurić (ni ja ne verujem)
Biggest respect goes to: ADRFranklin


Citat: Vodka PlayObožavam te "skriptere" koji probleme rešavaju tako što menjaju mod svaka 2 dana, tako će sigurno naučiti.
Neko im nacrta u temi Å¡ta treba uraditi, al' ne vredi nisu svi za skriptanje.

02

*

Citat: Osamu Dazai poslato Septembar 02, 2019, 12:53:18 POSLE PODNE
Našao lanmi koji ne zna šta je INDEX da objašnjava joj balkanu
NE DIRAJ MI DRUGARE MAJKUT Lanmi je moj brattt sa 2 t...
On dok je radio sa indexima ti nisi znao sa njih tako da molim te
002

Kao prvo mnogo vam hvala.Samo da znate ovo mi je prvi put da radim ovakav sistem i prvi put mi se ovo desilo sa textdrawowima da ubacujem playertextdrawowe inace global al ovo je prvi put player.Men kad neko kaze koju sam gresku napravio necu to vise ponovit tako da hvala vam <3 I da po prvi put radim klik na Textdraw  pa bi volio ovo da mi pomognete jos.
Kada ukucam /pecaj pojavi mi se td dobro i ja kad kliknem na td Pecaj ja hocu da se men pokrene pecanje ali sam uradio prvo da testiram uradio sam kad kliknem na pecaj da mi izbaci poruku krenuli ste sa pecanjem.Ali iz nekog razloga nece da klikne dole cu vam sve ostavit kodove.
Ovo sam dodao u public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    if(newkeys == KEY_SUBMISSION)
    {
        PlayerTextDrawShow(playerid, TDPecanje[playerid][7]);
        SelectTextDraw(playerid, COLOR_RED);
    }

Ovo sam dodao u public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
    if(playertextid == TDPecanje[playerid][7])
    {
         SCM(playerid,-1,"[BE:RP]Poceli ste sa pecanjem.");
    }

Evo komanda
YCMD:pecaj(playerid,params[],help)
{
   //if(PlayerInfo[playerid][pPecanjeAlat] < 1) SCM(playerid,-1,"[BE:RP]Nemate Alat za pecanje!");
   	if(IsPlayerInRangeOfPoint(playerid, 3.0, 403.8601,-2088.1582,7.8359))
	{
		PrikazPecanjeTD(playerid);
		SCM(playerid,-1,"[BE:RP]Da biste poceli sa pecanjem pritisnite na textdrawu PECAJ");
		SelectTextDraw(playerid, COLOR_RED);
	}
   return 1;
}

Textdraw ti mora biti selectable.

PlayerTextDrawSetSelectable(playerid, TDPecanje[playerid][7], 1);
Poslednja Izmena: Septembar 02, 2019, 14:29:15 POSLE PODNE od M0nster
You'll be always in my heart, the end and thanks for amazing times. #WeAreLords

Citat: M0nster poslato Septembar 02, 2019, 14:27:24 POSLE PODNE
Textdraw ti mora biti selectable.

PlayerTextDrawSetSelectable(playerid, TDPecanje[playerid][7], 1);

@M0nster Izvini glup sam hahaha
Mozes samo molim te rec gdje to trebam stavit sad sam probo stavit u ovo sve gore kodove sto sam poslo u temu al opet nece.Al to nisam trebo napravit trebo sam odma tebe pitat nema veze ako mozes samo to rec.

TDPecanje[playerid][7] = CreatePlayerTextDraw(playerid, 417.000000, 250.375000, "Pecaj");
PlayerTextDrawLetterSize(playerid, TDPecanje[playerid][7], 0.338999, 1.394375);
PlayerTextDrawAlignment(playerid, TDPecanje[playerid][7], 1);
PlayerTextDrawColor(playerid, TDPecanje[playerid][7], -1);
PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][7], 0);
PlayerTextDrawSetOutline(playerid, TDPecanje[playerid][7], 0);
PlayerTextDrawBackgroundColor(playerid, TDPecanje[playerid][7], 255);
PlayerTextDrawFont(playerid, TDPecanje[playerid][7], 2);
PlayerTextDrawSetProportional(playerid, TDPecanje[playerid][7], 1);
PlayerTextDrawSetShadow(playerid, TDPecanje[playerid][7], 0);
PlayerTextDrawSetSelectable(playerid, TDPecanje[playerid][7], 1);
You'll be always in my heart, the end and thanks for amazing times. #WeAreLords

E ne zamaraj me sa sranjima "to mi je prvi put" pa jel jebeš ili "skriptaš" pa da nam se pravdas ovde, svakako osnove ne znas jebao ili ne :D
My tutorials: y_inline & y_dialog, Ternary Operator, y_flooding, y_bit, samp-logger, Pawn Plus I Deo ( Dynamic Strings ), Map Zones, TextDraw Buttons, y_iterate, easyDialog, samp-plugin-timerfix
My includes: TextDraw Buttons


Respect: Bunta, Vedran, Ivan Bagarić, Itz.Yansi, Rade Ćurić (ni ja ne verujem)
Biggest respect goes to: ADRFranklin


Citat: Vodka PlayObožavam te "skriptere" koji probleme rešavaju tako što menjaju mod svaka 2 dana, tako će sigurno naučiti.
Neko im nacrta u temi Å¡ta treba uraditi, al' ne vredi nisu svi za skriptanje.

Citat: Osamu Dazai poslato Septembar 02, 2019, 15:01:20 POSLE PODNE
E ne zamaraj me sa sranjima "to mi je prvi put" pa jel jebeš ili "skriptaš" pa da nam se pravdas ovde, svakako osnove ne znas jebao ili ne :D
@Osamu Dazai Cuj vec sam rekao gore kada imam neki problem i kada mi taj problem neko rijesi sledeci put necu morat trazit po forumima kako rjesavat nego sam rijesit jer sam skonto.A ovo sto sam rekao "to mi je prvi put" mislio sam na to da mi je prvi put da ubacim player textdraw i da radim oko selectTextdraw.A odradio sam jedan update na modu mozes pogledat u mom opisu i ima u temi lista sta je dodano na update.Tako da ono ja kad znam da to uradim logicno ne trazim pomoc ali kad ne znam ja prvo sve pokusam da uradim izmjenim il dodam i ako to ne uspije onda trazim pomoc.

Bato ti uhodiš sve nas ovde od 2017-18 i dalje osnove nisi naučio, znam kada sam ti prvi put pomagao i iz dana iz dan otvaraš debilna pitanja.

Tako je kada učiš da FIXAŠ a ne zapravo da budeš nezavistan od drugog i napraviš nešto svoje za promenu :D
My tutorials: y_inline & y_dialog, Ternary Operator, y_flooding, y_bit, samp-logger, Pawn Plus I Deo ( Dynamic Strings ), Map Zones, TextDraw Buttons, y_iterate, easyDialog, samp-plugin-timerfix
My includes: TextDraw Buttons


Respect: Bunta, Vedran, Ivan Bagarić, Itz.Yansi, Rade Ćurić (ni ja ne verujem)
Biggest respect goes to: ADRFranklin


Citat: Vodka PlayObožavam te "skriptere" koji probleme rešavaju tako što menjaju mod svaka 2 dana, tako će sigurno naučiti.
Neko im nacrta u temi Å¡ta treba uraditi, al' ne vredi nisu svi za skriptanje.

Citat: Osamu Dazai poslato Septembar 02, 2019, 19:23:59 POSLE PODNE
Bato ti uhodiš sve nas ovde od 2017-18 i dalje osnove nisi naučio, znam kada sam ti prvi put pomagao i iz dana iz dan otvaraš debilna pitanja.

Tako je kada učiš da FIXAŠ a ne zapravo da budeš nezavistan od drugog i napraviš nešto svoje za promenu :D
A slusaj uskoro pravim po prvi put svoju filterskriptu radi se o poslu tako da sve sto sam naucio cu tamo iskoristit al prvo treba da smislim sve oko posla.Nego da ti kazem ne zelim se respravljat ja nikog ne tjeram da mi pomogne nit ista ako neko hoce nek pomogne ako nece nce sta cu ija  :D :D :D :D