[HELP]Y_INI Problem[HELP]!!!
#3

Here's my piece of CreateHouse code:
pawn Код:
stock CreateHouse(Price,Float:EnterX,Float:EnterY,Float:EnterZ,Float:ExitX,Float:ExitY,Float:ExitZ,Layout,Float:TeleX,Float:TeleY,Float:TeleZ)
{
   HouseInfo[houseid][DefaultPrice] = Price;
   HouseInfo[houseid][EnterPos][0] = EnterX;
   HouseInfo[houseid][EnterPos][1] = EnterY;
   HouseInfo[houseid][EnterPos][2] = EnterZ;
   HouseInfo[houseid][ExitPos][0] = ExitX;
   HouseInfo[houseid][ExitPos][1] = ExitY;
   HouseInfo[houseid][ExitPos][2] = ExitZ;
   HouseInfo[houseid][Interior] = Layout;
   HouseInfo[houseid][TelePos][0] = TeleX;
   HouseInfo[houseid][TelePos][1] = TeleY;
   HouseInfo[houseid][TelePos][2] = TeleZ;
   HouseInfo[houseid][SellPrice]=0;
   HouseInfo[houseid][hPickup] = CreatePickup(1273,1,EnterX,EnterY,EnterZ,-1);
   HouseInfo[houseid][ehPickup] = CreatePickup(1272,1,ExitX,ExitY,ExitZ,-1);
   new string[250];
   if(!HouseInfo[houseid][Owner][0]) format(string,sizeof(string),"{FOR SELL}\nPrice:%d$",Price);
   else if(HouseInfo[houseid][Owner][0] != 0)
   {
      if(HouseInfo[houseid][hSell]==0) format(string,sizeof(string),"Owner:%s",HouseInfo[houseid][Owner]);
      else if(HouseInfo[houseid][hSell]==1) format(string,sizeof(string),"{FOR SELL}\nOwner:%s\nSell price:%d$",HouseInfo[houseid][Owner],HouseInfo[houseid][SellPrice]);
   }
   HouseInfo[houseid][hText] = Create3DTextLabel(string,COLOR_BLUE,EnterX,EnterY,EnterZ+0.5,50.0,0,0);
   houseid++;
   return 1;
}
But the problem is that it lacks one line wich may solve the problem,the line I've pointed in the first point,and I don't know how to convert it into Y_INI...
Reply


Messages In This Thread
[HELP]Y_INI Problem[HELP]!!! - by Cjgogo - 12.07.2012, 13:19
Re: [HELP]Y_INI Problem[HELP]!!! - by SomebodyAndMe - 12.07.2012, 13:58
Re: [HELP]Y_INI Problem[HELP]!!! - by Cjgogo - 13.07.2012, 07:53
Re: [HELP]Y_INI Problem[HELP]!!! - by SomebodyAndMe - 13.07.2012, 09:43
Re: [HELP]Y_INI Problem[HELP]!!! - by Cjgogo - 13.07.2012, 13:33

Forum Jump:


Users browsing this thread: 2 Guest(s)