[POMOC] Biranje Skina

Započeo xLanmi, Oktobar 21, 2016, 22:39:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Moj MOD :D
Detaljno objasnjenje problema: Ovako imam problem mesa mi td ne kapiram zasto, dole mi pise id 29 a na slici je drugi skin
Deo skripte:
[pawn]new Skinovi1[][] =
{
   "21",
   "29",
   "26",
   "60",
   "101",
   "170",
   "185",
   "239",
   "299"
};
new Skinovi2[][] =
{
   {21},
   {29},
   {26},
   {60},
   {101},
   {170},
   {185},
   {239},
   {299}
};[/pawn]
Kada se klikne na td dacu samo za plus
[pawn]if(playertextid == RegKlikTD[playerid][16])
   {
        if(polmoze[playerid] == 1)
        {
       if(PlayerInfo[playerid][pPol] == 2)
      {
          if(regSkin[playerid] == 8)
         {
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            return 1;
         }
         regSkin[playerid] ++;
         new string[15];
         PlayerTextDrawHide(playerid, RegKlikTD[playerid][13]);
         PlayerTextDrawShow(playerid, RegKlikTD[playerid][13]);
         format(string, sizeof(string),"%s", Skinovi3[regSkin[playerid]][0]);
         PlayerTextDrawSetString(playerid,RegKlikTD[playerid][13], string);
         PlayerTextDrawHide(playerid, RegKlikTD[playerid][55]);
         PlayerTextDrawShow(playerid, RegKlikTD[playerid][55]);
         SetPlayerSkin(playerid, Skinovi4[regSkin[playerid]][0]);
         PlayerInfo[playerid][pSkin] = Skinovi4[regSkin[playerid]][0];
         PlayerTextDrawSetPreviewModel(playerid, RegKlikTD[playerid][55], Skinovi4[regSkin[playerid]][0]);
          PlayerPlaySound(playerid, 1052 , 0.0, 0.0, 0.0);
          return 1;
      }
      else
      {
          if(regSkin[playerid] == 9)
         {
            PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
            return 1;
         }
         regSkin[playerid] ++;
         new string[15];
         PlayerTextDrawHide(playerid, RegKlikTD[playerid][13]);
         PlayerTextDrawShow(playerid, RegKlikTD[playerid][13]);
         format(string, sizeof(string),"%s", Skinovi1[regSkin[playerid]][0]);
         PlayerTextDrawSetString(playerid,RegKlikTD[playerid][13], string);
         PlayerTextDrawHide(playerid, RegKlikTD[playerid][55]);
         PlayerTextDrawShow(playerid, RegKlikTD[playerid][55]);
         SetPlayerSkin(playerid, Skinovi2[regSkin[playerid]][0]);
         PlayerInfo[playerid][pSkin] = Skinovi2[regSkin[playerid]][0];
         PlayerTextDrawSetPreviewModel(playerid, RegKlikTD[playerid][55], Skinovi2[regSkin[playerid]][0]);
          PlayerPlaySound(playerid, 1052 , 0.0, 0.0, 0.0);
          return 1;
          }
      }
      else return SCM(playerid,-1,"[UPOZORENJE] Niste izabrali pol!");
   }[/pawn]
Slika/nesto: http://imgur.com/a/frdns

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

[pawn]new Skinovi1[9][0] =//isto
{
   "21",
   "29",
   "26",
   "60",
   "101",
   "170",
   "185",
   "239",
   "299"
};
new Skinovi2[9][0] = //ako ne bude ovako kod 0le stavices 1
{
   {21},
   {29},
   {26},
   {60},
   {101},
   {170},
   {185},
   {239},
   {299}
};[/pawn]