[+1 REP] Errors in /myhouses
#1

Who can help me to fix this errors will get +1 REP :P

pawn Код:
/*20292*/if(strcmp(cmdtext,"/myhouses",true)==0)
/*20292*/   {
/*20293*/       new path[32],hown[MAX_STRING],hasker[MAX_STRING];
/*20294*/       /*20295*/SendClientMessage(playerid,COLOR_BRIGHTRED,"|___________________________[HOUSES]________/*20296*/___________________|");
/*20297*/       for(new i=0;i<sizeof(House);i++)
/*20298*/       {
/*20299*/           format(path,sizeof(path),"Houses/casa%d.txt",House[i][HouseID]);
/*20300*/           hown = dini_Get(path,"owner");
/*20301*/           format(hasker, MAX_STRING, "%s", PlayerName(playerid));
/*20302*/           if(House[i][cOwned] == 1 && strcmph(asker,hown,false)==0)
/*20303*/               {
/*20304*/                   if(strcmp(dini_Get(path,"owner"),PlayerName(playerid),false) == 0)
/*20305*/                   {
/*20306*/                       new text[60];
/*20307*/                       new atext[60];
/*20308*/                       if(Houses[i][cclosed] == 1) { text = "Closed"; }
/*20309*/                       if(Houses[i][cclosed] == 0) { text = "Open"; }
/*20310*/                       if(Houses[i][cbuyable] == 1) { atext = "On Sale"; }
/*20311*/                       if(Houses[i][cbuyable] == 0) { atext = "Not For Sale"; }
/*20312*/                       format(string, sizeof(string), "[House ID%d]  [%d]  [%d]  [Rent: %d][%s] ",houseid,Houses[i][cclosed],Houses[i][cbuyable],tmpprice,zoneinfoatext,text);
/*20313*/                       SendClientMessage(playerid,COLOR_GREY,string);
/*20314*/                   }
/*20315*/               }
/*20316*/           }
/*20317*/           else continue;
/*20318*/       }
/*20319*/       return 1;
/*20320*/   }
i get this errors
Код:
(20301) : warning 213: tag mismatch
(20301) : error 032: array index out of bounds (variable "House")
(20307) : error 017: undefined symbol "Houses"
(20307) : warning 215: expression has no effect
(20307) : error 001: expected token: ";", but found "]"
(20307) : error 029: invalid expression, assumed zero
(20307) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Reply


Messages In This Thread
[+1 REP] Errors in /myhouses - by deltapro - 18.02.2012, 17:56
Re: [+1 REP] Errors in /myhouses - by Twisted_Insane - 18.02.2012, 18:05
Re: [+1 REP] Errors in /myhouses - by deltapro - 18.02.2012, 18:27
Re: [+1 REP] Errors in /myhouses - by Twisted_Insane - 18.02.2012, 18:31
Re: [+1 REP] Errors in /myhouses - by deltapro - 19.02.2012, 19:45
Re: [+1 REP] Errors in /myhouses - by Twisted_Insane - 19.02.2012, 19:50
Re: [+1 REP] Errors in /myhouses - by deltapro - 19.02.2012, 19:54
Re: [+1 REP] Errors in /myhouses - by Twisted_Insane - 19.02.2012, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)