[POMOC]Error u pawno

Započeo Matrix_Green, Maj 01, 2011, 09:31:59 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

kripta koju koristim: Ravens
Detaljan opis problema: Radi komandu od kupi kucu i hocu napraivit nes kao kupistan i ja sve napraivm i izbacuje mi ove errore
/C:\DOCUME~1\sandman\Desktop\RAVEN'~1.3C\FILTER~1\VCS.pwn(83) : error 001: expected token: ",", but found "["
C:\DOCUME~1\sandman\Desktop\RAVEN'~1.3C\FILTER~1\VCS.pwn(83) : error 029: invalid expression, assumed zero
C:\DOCUME~1\sandman\Desktop\RAVEN'~1.3C\FILTER~1\VCS.pwn(83) : warning 215: expression has no effect
C:\DOCUME~1\sandman\Desktop\RAVEN'~1.3C\FILTER~1\VCS.pwn(83) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\sandman\Desktop\RAVEN'~1.3C\FILTER~1\VCS.pwn(83) : fatal error 107: too many error messages on one line

Dio skripte:    if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned], == 0)
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Maj 01, 2011, 09:32:54 PRE PODNE od sandman12wolf
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

probaj
if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0);
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: System32 poslato Maj 01, 2011, 09:40:56 PRE PODNE
probaj
if(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0);

i opet isti error
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

ajde daj cijelu komandu za kupit kucu
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(cmdtext, "/kupistan", 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(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0);
            {
               if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
               {
                  format(string, sizeof(string), " MoraÅ¡ biti level %d da bi kupio ovo !", HouseInfo[h][hLevel]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(PlayerInfo[playerid][pPhousekey] != 9999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   Već imaÅ¡ stan, napiÅ¡i /prodajstan ako želiÅ¡ kupiti ovaj !");
                  return 1;
               }

               if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
               {
                   if(PlayerInfo[playerid][pPassport] == 1)
                   {
                     PlayerInfo[playerid][pPhousekey] = h;
                     HouseInfo[h][hOwned] = 1;
                     strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
                     SafeGivePlayerMoney(playerid,-HouseInfo[h][hValue]);
                     PlayerPlayMusic(playerid);
                     GameTextForPlayer(playerid, "~w~Vas stan~n~Da bi izasao pridji vratima i napisi /exit", 5000, 3);
                     SendClientMessage(playerid, COLOR_WHITE, "Cestitamo, na novoj nekretnini !");
                     OnPropUpdate(1,h);
                     OnPlayerUpdateEx(playerid);
                     OnPropTextdrawUpdate(1, h);
                     OnHousePickupUpdate(h);
                     new y, m, d;
                     new h1,mi,s;
                     getdate(y,m,d);
                     gettime(h1,mi,s);
                     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /kupistan [$%d]",d,m,y,h1,mi,s,sendername, HouseInfo[h][hValue]);
                     PayLog(string);
                     if (PlayerInfo[playerid][pAchievement18] == 0)
                     {
                         TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Osvojio si Medalju ~n~~b~Home, Sweet, Home. (18) ~n~~n~~w~Nagrada: ~g~$1337");
                         ShowAchievement(playerid);
                        SafeGivePlayerMoney(playerid, 1337);
                        PlayerInfo[playerid][pAchievement18] = 1;
                     }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_WHITE, "* Zbog sigurnosti, Lozinka je potrebna da bi se kupio stan!");
                     return 1;
                  }
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   NemaÅ¡ dovoljno novca !");
                  return 1;
               }
            }
         }
      }
      return 1;
   }



evo komande cjele
Poslednja Izmena: Maj 01, 2011, 10:09:33 PRE PODNE od sandman12wolf
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>


if(strcmp(cmdtext, "/kupistan", 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(IsPlayerInRangeOfPoint(playerid, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]) && HouseInfo[h][hOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < HouseInfo[h][hLevel])
               {
                  format(string, sizeof(string), " MoraÅ¡ biti level %d da bi kupio ovo !", HouseInfo[h][hLevel]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(PlayerInfo[playerid][pPhousekey] != 9999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   Vec imaÅ¡ stan, napiÅ¡i /prodajstan ako želiÅ¡ kupiti ovaj !");
                  return 1;
               }

               if(GetPlayerMoney(playerid) > HouseInfo[h][hValue])
               {
                   if(PlayerInfo[playerid][pPassport] == 1)
                   {
                     PlayerInfo[playerid][pPhousekey] = h;
                     HouseInfo[h][hOwned] = 1;
                     strmid(HouseInfo[h][hOwner], sendername, 0, strlen(sendername), 255);
                     SafeGivePlayerMoney(playerid,-HouseInfo[h][hValue]);
                     PlayerPlayMusic(playerid);
                     GameTextForPlayer(playerid, "~w~Vas stan~n~Da bi izasao pridji vratima i napisi /exit", 5000, 3);
                     SendClientMessage(playerid, COLOR_WHITE, "Cestitamo, na novoj nekretnini !");
                     OnPropUpdate(1,h);
                     OnPlayerUpdateEx(playerid);
                     OnPropTextdrawUpdate(1, h);
                     OnHousePickupUpdate(h);
                     new y, m, d;
                     new h1,mi,s;
                     getdate(y,m,d);
                     gettime(h1,mi,s);
                     format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /kupistan [$%d]",d,m,y,h1,mi,s,sendername, HouseInfo[h][hValue]);
                     PayLog(string);
                     if (PlayerInfo[playerid][pAchievement18] == 0)
                     {
                         TextDrawSetString(Textdraw64[playerid],"Cestitamo! ~n~~n~Osvojio si Medalju ~n~~b~Home, Sweet, Home. (18) ~n~~n~~w~Nagrada: ~g~$1337");
                         ShowAchievement(playerid);
                        SafeGivePlayerMoney(playerid, 1337);
                        PlayerInfo[playerid][pAchievement18] = 1;
                     }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_WHITE, "* Zbog sigurnosti, Lozinka je potrebna da bi se kupio stan!");
                     return 1;
                  }
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "   NemaÅ¡ dovoljno novca !");
                  return 1;
               }
            }
         }
      }
      return 1;
   }
Poslednja Izmena: Maj 01, 2011, 11:08:36 PRE PODNE od eXtreme