Clickable TextDraw Problem

Započeo 6YuKiMuRo9, Mart 17, 2018, 22:45:46 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Nista to
Dio skripte: [ pawn ]Nista to[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]nista to[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): https://imgur.com/a/XB6ma
Luk@ ebo li te ovaj formular ni za kicmu nije hahaha <3 Slmse brt moi dodaj jos koji...
Ovako:
Igrac kada stisne TD[0] ono izvrsi TD[0], ali ja sam dodao i za TD[1] i ono kad stisnem njega ne uradi nista ali kada stisnem TD[0] izvrsi i za TD[0] pa onda za TD[1]
U pitanju je LD_SPAC:WHITE, ako si botic ne odgovaraj ni Harexe nije znao resit...
ZNACI NE MOZE BIT DO SIZE-a
PLAYER TD-OVI SU TKD NIJE DO TOGA
SELECTABLE SU OBA
PROVERIO SAM [ID] DOBAR JE

MAJ SKVEL BOGOTAC JA SAM MAJ SKVEL MAKAVELI MAJSTOR OH NE JA SAM BOGOTAC JA ZNAM MAJ SKVEL TI KORISTIS .INI OH NE TI SI BOTARA I KANCER SI JER NE KORISTIS MAJ SKVEL MAKAVELI OH NE...

ili
Y_INI ne odredjuje tvoje sposobnosti :D
(Ono gore Joey)

Posalji deo skripte kad klikne textdrawove i gde se kreiraju

[pawn]stock KreirajTextDrawove(playerid)
{
   PlayerGameModeTD[0][playerid] = CreatePlayerTextDraw(playerid, 229.341476, 194.433486, "loadsc9:loadsc9");
   PlayerTextDrawTextSize(playerid, PlayerGameModeTD[0][playerid], 70.000000, 70.000000);
   PlayerTextDrawAlignment(playerid, PlayerGameModeTD[0][playerid], 1);
   PlayerTextDrawColor(playerid, PlayerGameModeTD[0][playerid], -1);
   PlayerTextDrawSetShadow(playerid, PlayerGameModeTD[0][playerid], 0);
   PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD[0][playerid], 255);
   PlayerTextDrawFont(playerid, PlayerGameModeTD[0][playerid], 4);
   PlayerTextDrawSetProportional(playerid, PlayerGameModeTD[0][playerid], 0);
   PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD[0][playerid], true);

   PlayerGameModeTD[1][playerid] = CreatePlayerTextDraw(playerid, 346.343414, 194.433486, "loadsc7:loadsc7");
   PlayerTextDrawTextSize(playerid, PlayerGameModeTD[1][playerid], 70.000000, 70.000000);
   PlayerTextDrawAlignment(playerid, PlayerGameModeTD[1][playerid], 1);
   PlayerTextDrawColor(playerid, PlayerGameModeTD[1][playerid], -1);
   PlayerTextDrawSetShadow(playerid, PlayerGameModeTD[1][playerid], 0);
   PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD[1][playerid], 255);
   PlayerTextDrawFont(playerid, PlayerGameModeTD[1][playerid], 4);
   PlayerTextDrawSetProportional(playerid, PlayerGameModeTD[1][playerid], 0);
   PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD[1][playerid], true);

   PlayerGameModeTD[2][playerid] = CreatePlayerTextDraw(playerid, 387.752868, 249.733398, "ARENA");
   PlayerTextDrawLetterSize(playerid, PlayerGameModeTD[2][playerid], 0.300000, 1.799999);
   PlayerTextDrawAlignment(playerid, PlayerGameModeTD[2][playerid], 1);
   PlayerTextDrawColor(playerid, PlayerGameModeTD[2][playerid], -1);
   PlayerTextDrawSetShadow(playerid, PlayerGameModeTD[2][playerid], 0);
   PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD[2][playerid], 255);
   PlayerTextDrawFont(playerid, PlayerGameModeTD[2][playerid], 3);
   PlayerTextDrawSetProportional(playerid, PlayerGameModeTD[2][playerid], 1);
   PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD[2][playerid], true);

   PlayerGameModeTD[3][playerid] = CreatePlayerTextDraw(playerid, 252.151885, 249.733398, "freeroam");
   PlayerTextDrawLetterSize(playerid, PlayerGameModeTD[3][playerid], 0.300000, 1.799999);
   PlayerTextDrawAlignment(playerid, PlayerGameModeTD[3][playerid], 1);
   PlayerTextDrawColor(playerid, PlayerGameModeTD[3][playerid], -1);
   PlayerTextDrawSetShadow(playerid, PlayerGameModeTD[3][playerid], 0);
   PlayerTextDrawBackgroundColor(playerid, PlayerGameModeTD[3][playerid], 255);
   PlayerTextDrawFont(playerid, PlayerGameModeTD[3][playerid], 3);
   PlayerTextDrawSetProportional(playerid, PlayerGameModeTD[3][playerid], 1);
   PlayerTextDrawSetSelectable(playerid, PlayerGameModeTD[3][playerid], true);
   return 1;
}[/pawn]
OPC se kreira, nisam bot kao ti beboo <3

EDIT: Eo ti click al nie do toga -_-
[pawn]public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
   if(playertextid == PlayerGameModeTD[0][playerid])
   {
      TogglePlayerSpectating(playerid, false);
      CancelSelectTextDraw(playerid);
      new rand = random(sizeof(FRRandSpawn));
      SetSpawnInfo(playerid, 0, 1+random(298), FRRandSpawn[rand][0], FRRandSpawn[rand][1], FRRandSpawn[rand][2], random(280), 24, 9999, 25, 9999, 34, 9999);
      SpawnPlayer(playerid);


      World[playerid] = 1;
      PlayerIsInArena[playerid] = false;
      PlayerIsInFreeroam[playerid] = true;

      for(new i = 0; i < 7; i++)
      {
         TextDrawHideForPlayer(playerid, GameModeTD);
      }

      for(new j = 0; j < 4; j++)
      {
         PlayerTextDrawHide(playerid, PlayerGameModeTD[j][playerid]);
      }

      Info(playerid, "Ulazite u Freeroam DM...");
      Info(playerid, "Komande: /weapon");
   }
   if(playertextid == PlayerGameModeTD[playerid][1])
   {
      CancelSelectTextDraw(playerid);
      PlayerIsInArena[playerid] = true;
      PlayerIsInFreeroam[playerid] = false;
      World[playerid] = 2;

      SetSpawnInfo(playerid, 0, 1+random(298), 1710.433715, -1669.379272, 20.225049, random(280), -1, -1, -1, -1, -1, -1);
      SpawnPlayer(playerid);

      Info(playerid, "Ulazite u Arena DM...");
      Info(playerid, "Komande: /dm /duel");

      for(new i = 0; i < 7; i++)
      {
         TextDrawHideForPlayer(playerid, GameModeTD);
      }

      for(new j = 0; j < 4; j++)
      {
         PlayerTextDrawHide(playerid, PlayerGameModeTD[j][playerid]);
      }
   }
   return 1;
}[/pawn]
Poslednja Izmena: Mart 17, 2018, 23:45:45 POSLE PODNE od Nobody
MAJ SKVEL BOGOTAC JA SAM MAJ SKVEL MAKAVELI MAJSTOR OH NE JA SAM BOGOTAC JA ZNAM MAJ SKVEL TI KORISTIS .INI OH NE TI SI BOTARA I KANCER SI JER NE KORISTIS MAJ SKVEL MAKAVELI OH NE...

ili
Y_INI ne odredjuje tvoje sposobnosti :D
(Ono gore Joey)