[Pomoc] Nesto sitno

Započeo Blaeks, Decembar 20, 2011, 01:00:10 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTA RP
Detaljan opis problema: Mozete da mi date komandu /sellhouse /buyhouse i /gmx u strcmp(Hvala :)
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Citat: Blaeks_Biofor poslato Decembar 20, 2011, 01:00:10 PRE PODNE
Skripta koju koristim: GTA RP
Detaljan opis problema: Mozete da mi date komandu /sellhouse /buyhouse i /gmx u strcmp(Hvala :)
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

to nije brate daj mi...niti znamo kako ti je šta definisano, ni ništa...ni za gmx da li treba nešto da pamti ili ćeš samo da restartuje server ništa ne znamo -.-
Poslednja Izmena: Decembar 20, 2011, 01:11:23 PRE PODNE od Talavander
Kada muškarac priča ženi bezobrazne stvari, to je seksualno uznemiravanje…
A kada žena to radi muškarcu to je 2 eura+PDV po minuti. :D

brate treba mi komanda /gmx valjda me razumes :) za restart servera naravno ne globalnog restarta nego obicnog

//----------------------------------------------
   if(strcmp(cmd, "/gmx", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerInfo[playerid][pAdmin] >= 1340)
         {
            GameModeExit();
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu !");
         }
      }
      return 1;
   }
//----------------------------------------------
   if(strcmp(cmd, "/buyhouse", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         new Float:oldposx, Float:oldposy, Float:oldposz;
         GetPlayerName(playerid, playername, sizeof(playername));
         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
         for(new h = 0; h < sizeof(HouseInfo); h++)
         {
            if(PlayerToPoint(2.0, playerid, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
               {
                  format(string, sizeof(string), "   Morate biit Level %d da biste kupili ovo !", HouseInfo[h][hLevel]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   Vec posjedujete kucu, kucajte /sellhouse ako zelite da kupite ovu !");
                  return 1;
               }
               if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
               {
                   Delete3DTextLabel(Text3D:housesale);
                  PlayerInfo[playerid][pPhousekey] = h;
                  HouseInfo[h][hOwned] = 1;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
                  SafeGivePlayerMoney(playerid,-HouseInfo[h][hValue]);
                  /*SetPlayerInterior(playerid,HouseInfo[h][hInt]);
                  SetPlayerVirtualWorld(playerid,HouseInfo[h][hWorld]);
                  SetPlayerPos(playerid,HouseInfo[h][hExitx],HouseInfo[h][hExity],HouseInfo[h][hExitz]);*/
                  GameTextForPlayer(playerid, "~w~Dobrodosli Kuci~n~Mozete uvjek izaci tako sto cete doci do ulaznih vrata i kucati /exit", 5000, 3);
                  PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
                  PlayerInfo[playerid][pLocal] = h;
                  SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na kupovini nove kuce !");
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da biste dobili pomoc vezanu za kucu !");
                  Delete3DTextLabel(Text3D:housesale);
                        DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdateCustom(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   Nemate dovoljno novca za kupovinu !");
                  return 1;
               }
            }
         }
      }
      return 1;
   }
//----------------------------------------------
if(strcmp(cmd, "/sellhouse", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
         GetPlayerName(playerid, playername, sizeof(playername));
         if(PlayerInfo[playerid][pPhousekey] == 255)
         {
            SendClientMessage(playerid, COLOR_WHITE, "Ne posjedujete kucu.");
            return 1;
         }
         if(PlayerInfo[playerid][pMarried] > 0)
          {
              SendClientMessage(playerid, COLOR_GREY, "   Vjencani ste, ne mozete prodati kucu !");
              return 1;
          }
         if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
         {
            new house = PlayerInfo[playerid][pPhousekey];
            HouseInfo[house][hHel] = 0;
            HouseInfo[house][hArm] = 0;
            HouseInfo[house][hHealthx] = 0;
            HouseInfo[house][hHealthy] = 0;
            HouseInfo[house][hHealthz] = 0;
            HouseInfo[house][hArmourx] = 0;
            HouseInfo[house][hArmoury] = 0;
            HouseInfo[house][hArmourz] = 0;
            HouseInfo[house][hLock] = 1;
            HouseInfo[house][hOwned] = 0;
            HouseInfo[house][hVec] = 418;
            HouseInfo[house][hVcol1] = -1;
            HouseInfo[house][hVcol2] = -1;
            GetPlayerName(playerid, sendername, sizeof(sendername));
            strmid(HouseInfo[house][hOwner], "Drzava", 0, strlen("Drzava"), 255);
            SafeGivePlayerMoney(playerid,HouseInfo[house][hValue]);
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            format(string, sizeof(string), "~w~Cestitamo~n~ Prodali ste kucu za ~n~~g~$%d", HouseInfo[house][hValue]);
            GameTextForPlayer(playerid, string, 10000, 3);
            format(string1, sizeof(string), "[PRODAJA]\n$ %d",HouseInfo[house][hValue]);
            housesale = Create3DTextLabel(string1,0x006400FF,HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey], HouseInfo[house][hEntrancez]+1,15,0,1);
            PlayerInfo[playerid][pPhousekey] = 255;
            if(PlayerInfo[playerid][pLocal] == house)
            {
               SetPlayerInterior(playerid,0);
               SetPlayerVirtualWorld(playerid,0);
               SetPlayerPos(playerid,HouseInfo[house][hEntrancex],HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
               PlayerInfo[playerid][pInt] = 0;
            }
            OnPropUpdate();
            OnPlayerUpdateCustom(playerid);
            return 1;
         }
         else
         {
            SendClientMessage(playerid, COLOR_WHITE, "Ne posjedujete kucu.");
         }
      }
      return 1;
   }
//----------------------------------------------

Svaka skripta je drukcija ,stavi ovo i reci kake erore izbacuje :)
Poslednja Izmena: Decembar 20, 2011, 19:27:58 POSLE PODNE od [BU]Lukas