Problem u vezi sa textdrawom

Započeo Markoo00, Januar 27, 2023, 20:51:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pitanje/savjet: zasto mi nece da odabere ponuceni textdraw ja sam sve lijepo spojio bar tako mislim.
Opširnije:[pawn]pod public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
   if(playertextid == Bankomat[2][playerid])
    {
      if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[NS] "CRVENA"Nemate bankovni racun!");
      SPD(playerid, 318, DSI,""PLAVA"Podizanje novca",""BELA"Unesi koliko zelis novca da podignes sa vaseg racuna...","Podigni","Izlaz");
      return 1;
   }
    if(playertextid == Bankomat[3][playerid])
    {
        new string[100];
        if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[NS] "CRVENA"Nemate bankovni racun!");
        format(string, sizeof(string), ""BELA"Imate "ZELENA"%d$ "BELA"novca na vasem racunu...", PlayerInfo[playerid][pNovacBanka]);
        SPD(playerid, 320, DIALOG_STYLE_MSGBOX, ""ZELENA"Stanje Racuna", string, "Ok", "Izlaz");
        return 1;
    }
    if(playertextid == Bankomat[7][playerid])
    {
      AtmTD(playerid, 2); CancelSelectTextDraw(playerid); BankomatMeni[playerid] = -1;
        return 1;
    }[/pawn][pawn]stock AtmTD(playerid, tip)
{
   if(tip == 1)
   {
      Bankomat[0][playerid] = CreatePlayerTextDraw(playerid,194.000000, 152.000000, "_");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[0][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[0][playerid], 1);
      PlayerTextDrawLetterSize(playerid,Bankomat[0][playerid], 0.500000, 11.699995);
      PlayerTextDrawColor(playerid,Bankomat[0][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[0][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[0][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[0][playerid], 1);
      PlayerTextDrawUseBox(playerid,Bankomat[0][playerid], 1);
      PlayerTextDrawBoxColor(playerid,Bankomat[0][playerid], 1111638594);
      PlayerTextDrawTextSize(playerid,Bankomat[0][playerid], 16.000000, -4.000000);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[0][playerid], false);

      Bankomat[1][playerid] = CreatePlayerTextDraw(playerid,38.000000, 158.000000, "Centralna Banka");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[1][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[1][playerid], 2);
      PlayerTextDrawLetterSize(playerid,Bankomat[1][playerid], 0.340000, 1.500000);
      PlayerTextDrawColor(playerid,Bankomat[1][playerid], 8454143);
      PlayerTextDrawSetOutline(playerid,Bankomat[1][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[1][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[1][playerid], 1);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[1][playerid], false);

      Bankomat[2][playerid] = CreatePlayerTextDraw(playerid,28.000000, 191.000000, "- podigni novac");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[2][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[2][playerid], 2);
      PlayerTextDrawLetterSize(playerid,Bankomat[2][playerid], 0.340000, 1.500000);
      PlayerTextDrawColor(playerid,Bankomat[2][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[2][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[2][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[2][playerid], 1);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[2][playerid], true);

      Bankomat[3][playerid] = CreatePlayerTextDraw(playerid,28.000000, 221.000000, "- stanje racuna");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[3][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[3][playerid], 2);
      PlayerTextDrawLetterSize(playerid,Bankomat[3][playerid], 0.340000, 1.500000);
      PlayerTextDrawColor(playerid,Bankomat[3][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[3][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[3][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[3][playerid], 1);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[3][playerid], true);

      Bankomat[4][playerid] = CreatePlayerTextDraw(playerid,22.000000, 170.000000, "-");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[4][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[4][playerid], 2);
      PlayerTextDrawLetterSize(playerid,Bankomat[4][playerid], 13.820015, 1.000000);
      PlayerTextDrawColor(playerid,Bankomat[4][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[4][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[4][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[4][playerid], 1);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[4][playerid], false);

      Bankomat[5][playerid] = CreatePlayerTextDraw(playerid,194.000000, 151.000000, "_");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[5][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[5][playerid], 1);
      PlayerTextDrawLetterSize(playerid,Bankomat[5][playerid], 0.500000, -0.300004);
      PlayerTextDrawColor(playerid,Bankomat[5][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[5][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[5][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[5][playerid], 1);
      PlayerTextDrawUseBox(playerid,Bankomat[5][playerid], 1);
      PlayerTextDrawBoxColor(playerid,Bankomat[5][playerid], -1);
      PlayerTextDrawTextSize(playerid,Bankomat[5][playerid], 16.000000, -4.000000);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[5][playerid], false);

      Bankomat[6][playerid] = CreatePlayerTextDraw(playerid,194.000000, 263.000000, "_");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[6][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[6][playerid], 1);
      PlayerTextDrawLetterSize(playerid,Bankomat[6][playerid], 0.500000, -0.300004);
      PlayerTextDrawColor(playerid,Bankomat[6][playerid], -1);
      PlayerTextDrawSetOutline(playerid,Bankomat[6][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[6][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[6][playerid], 1);
      PlayerTextDrawUseBox(playerid,Bankomat[6][playerid], 1);
      PlayerTextDrawBoxColor(playerid,Bankomat[6][playerid], -1);
      PlayerTextDrawTextSize(playerid,Bankomat[6][playerid], 16.000000, -4.000000);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[6][playerid], false);

      Bankomat[7][playerid] = CreatePlayerTextDraw(playerid,178.000000, 145.000000, "X");
      PlayerTextDrawBackgroundColor(playerid,Bankomat[7][playerid], 255);
      PlayerTextDrawFont(playerid,Bankomat[7][playerid], 2);
      PlayerTextDrawLetterSize(playerid,Bankomat[7][playerid], 0.459999, 1.299999);
      PlayerTextDrawColor(playerid,Bankomat[7][playerid], 8454143);
      PlayerTextDrawSetOutline(playerid,Bankomat[7][playerid], 0);
      PlayerTextDrawSetProportional(playerid,Bankomat[7][playerid], 1);
      PlayerTextDrawSetShadow(playerid,Bankomat[7][playerid], 1);
      PlayerTextDrawSetSelectable(playerid,PlayerText:Bankomat[7][playerid], true);

      PlayerTextDrawShow(playerid, Bankomat[0][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[1][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[2][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[3][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[4][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[5][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[6][playerid]);
      PlayerTextDrawShow(playerid, Bankomat[7][playerid]);
   }
   else if(tip == 2)
   {
      PlayerTextDrawHide(playerid, Bankomat[0][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[1][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[2][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[3][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[4][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[5][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[6][playerid]);
      PlayerTextDrawHide(playerid, Bankomat[7][playerid]);
      PlayerTextDrawDestroy(playerid,Bankomat[0][playerid]); PlayerTextDrawDestroy(playerid,Bankomat[1][playerid]);
      PlayerTextDrawDestroy(playerid,Bankomat[2][playerid]); PlayerTextDrawDestroy(playerid,Bankomat[3][playerid]);
      PlayerTextDrawDestroy(playerid,Bankomat[4][playerid]); PlayerTextDrawDestroy(playerid,Bankomat[5][playerid]);
      PlayerTextDrawDestroy(playerid,Bankomat[6][playerid]); PlayerTextDrawDestroy(playerid,Bankomat[7][playerid]);
   }
   return 1;
}[/pawn][pawn]YCMD:bankomat(playerid, params[],help)
{
   #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"[NS] "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
    if(PlayerInfo[playerid][pBankovniRacun] == 0) return SCM(playerid,-1,"[NS] "CRVENA"Nemas otvoren bankovni racun!");
   if(KodBankomata(playerid) == -1) return SCM(playerid,-1,"[NS] "CRVENA"Niste kod bankomata!");
   //if(BankomatMeni[playerid] != -1) return SCM(playerid,-1,"[NS] "CRVENA"Vec pregledate bankomat!");
   SelectTextDraw(playerid, 0x878787FF); AtmTD(playerid, 1); BankomatMeni[playerid] = 1;
   return 1;
}[/pawn]
Dodatno:i znaci ne radi nista niti nemogu odbarat nista niti izaci


Citat: Galardo poslato Januar 28, 2023, 10:42:24 PRE PODNE
https://team.sa-mp.com/wiki/PlayerTextDrawTextSize.html
Da li mi mozes samo raci u cemu sam pogresio jer je ovo pre radilo sve normalo ali sada necea nisam uopste nista mjenjao u vezi sa tim sistemom