[POMOC]3D KUCE

Započeo JA SAM KRIV, Maj 31, 2011, 21:52:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GTARP
Detaljan opis problema: SVE LEPO DODAM ALI JEBE ME 3d house
Dio skripte: otkud znam
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
E ovako

DODAO SAM OVO



[new PropertyString[128];/code]

[code]#define MAX_HOUSES 1042 //3dkuce


for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
format(PropertyString,sizeof(PropertyString),"Kuca na Prodaju! \n Adresa: %s \n Kucni br: %d \n Level: %d \n Cijena: $%d \n da kupite: /kupikucu",HouseInfo[h][hDiscription], HouseInfo[h][hWorld], HouseInfo[h][hLevel], HouseInfo[h][hValue]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FF00AA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
else if(HouseInfo[h][hOwned] == 1)
{
format(PropertyString,sizeof(PropertyString),"Vlasnik %s \n Adresa: %s \n Kucni br: %d \n Level: %d \n Cijena renta: $%d  \n Najam: /rentroom", HouseInfo[h][hOwner], HouseInfo[h][hDiscription], HouseInfo[h][hWorld], HouseInfo[h][hLevel], HouseInfo[h][hRent]);
HouseLabel[h] = Create3DTextLabel(PropertyString ,0x00FFFFAA,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez],25, 0, 1);
AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
}
}



ERORI KOJI MI IZLAZE:


error 017: undefined symbol "HouseLabel" 
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero

4 Errors.




[/code]

Dodaj ovo
new Text3D:HouseLabel[sizeof(HouseInfo)];

error 017: undefined symbol "HouseInfo"

pa vidi kako ti je u skripti mozda ti je h_info ili slicno, mislim da bi to trebalo biti enum h_info ili tako ne bavim se bas tim RP skriptan
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

HouseInfo tako mi je u skripti

pa neznam zasto ti je undefinde onda trebalo bi raditi, aj sve iz HouseInfo
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

if(strcmp(cmd, "/kupikucu", 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 da budete Level %d da kupite ovu kucu !", HouseInfo[h][hLevel]);
                  SendClientMessage(playerid, COLOR_SUPER, string);
                  return 1;
               }
               if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
                  SendClientMessage(playerid, COLOR_SUPER, "   Vi vec imate kucu, ukucajte /prodajkucu da prodate staru da bi ste kupili ovu novu !");
                  return 1;
               }
               if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
               {
                  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]);
                  PlayerPlayMusic(playerid);
                  GameTextForPlayer(playerid, "~w~Dobrodosli kuci~n~Da izadjete,ukucajte /exit", 5000, 3);
                  PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
                  PlayerInfo[playerid][pLocal] = h;
                  SendClientMessage(playerid, COLOR_SUPER, "Cestitamo vam, kupili ste novu kucu !");
                  SendClientMessage(playerid, COLOR_SUPER, "Ukucajte /help da vidite nove komande za vasu kucu !");
                  DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdate(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_SUPER, "   Vi nemate novca za ovu kucu !");
                  return 1;
               }
            }
         }
      }
      return 1;
   }


To ti iz /kupikuca i vidis tu ima HouseInfo

sta ce mi komanda daj iz HouseInfo
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Citat: JA SAM KRIV poslato Maj 31, 2011, 22:35:42 POSLE PODNE
if(strcmp(cmd, "/kupikucu", 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 da budete Level %d da kupite ovu kucu !", HouseInfo[h][hLevel]);
                  SendClientMessage(playerid, COLOR_SUPER, string);
                  return 1;
               }
               if(PlayerInfo[playerid][pPhousekey] != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
                  SendClientMessage(playerid, COLOR_SUPER, "   Vi vec imate kucu, ukucajte /prodajkucu da prodate staru da bi ste kupili ovu novu !");
                  return 1;
               }
               if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
               {
                  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]);
                  PlayerPlayMusic(playerid);
                  GameTextForPlayer(playerid, "~w~Dobrodosli kuci~n~Da izadjete,ukucajte /exit", 5000, 3);
                  PlayerInfo[playerid][pInt] = HouseInfo[h][hInt];
                  PlayerInfo[playerid][pLocal] = h;
                  SendClientMessage(playerid, COLOR_SUPER, "Cestitamo vam, kupili ste novu kucu !");
                  SendClientMessage(playerid, COLOR_SUPER, "Ukucajte /help da vidite nove komande za vasu kucu !");
                  DateProp(playerid);
                  OnPropUpdate();
                  OnPlayerUpdate(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_SUPER, "   Vi nemate novca za ovu kucu !");
                  return 1;
               }
            }
         }
      }
      return 1;
   }


To ti iz /kupikuca i vidis tu ima HouseInfo
Jel imaš new HouseInfo[Neki broj][hInfo];

new HouseInfo[78][hInfo];

To je jedino vezi HouseInfo ovako sve ostalo je tamo ovo kod /kupikuca /prodajkucu itd...




nadi hInfo
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

POMOGO MI JE PREKO pm-a


/// RESENO ADMINI LOCK
Poslednja Izmena: Maj 31, 2011, 23:00:15 POSLE PODNE od JA SAM KRIV