Adress house problem
#4

i want to introduce adress in this script but i dont know .
Код:
  	for(new s = 0; s < sizeof(ApartmentInfo); s++)
   	{
   		new zone[32];
		GetPlayer2DZone(playerid,zone,sizeof(zone));

    	new gFile[35];
     	format(gFile, 35, "Apartments/%d.ini" ,s);
      	INI_ParseFile(gFile, "LoadApartments", .bExtra = true, .extra = s);
       	if(ApartmentInfo[s][sCreated] == 1)
        {
        	if(ApartmentInfo[s][sOwned] == 0)
         	{
          		format(string,sizeof(string),"{0099FF}For Sale! \n {0099FF}Adress: {FFFFFF}%d \n {0099FF}Price: {FFFFFF}$%d\n {0099FF}Level: {FFFFFF}%d \n {0099FF}Description: {FFFFFF}%s",zone, ApartmentInfo[s][sPrice],ApartmentInfo[s][sLevel], ApartmentInfo[s][sDescription]);
            	ApartmentLabel[s] = Create3DTextLabel(string ,0x00FFFFFF,ApartmentInfo[s][sEnterx], ApartmentInfo[s][sEntery], ApartmentInfo[s][sEnterz]+0.5,35, 0, 1);
             	ApartmentPickup[s] = CreateDynamicPickup(1273, 1, ApartmentInfo[s][sEnterx], ApartmentInfo[s][sEntery], ApartmentInfo[s][sEnterz]);
              	}
            if(ApartmentInfo[s][sOwned] == 1)
          	{
           		format(string,sizeof(string)," {0099FF}Owner: {FFFFFF}%s \n {0099FF}Adress: {FFFFFF}%d \n {0099FF}Description: {FFFFFF}%s",ApartmentInfo[s][sOwner],zone, ApartmentInfo[s][sDescription]);
             	ApartmentLabel[s] = Create3DTextLabel(string ,0x00FFFFFF,ApartmentInfo[s][sEnterx], ApartmentInfo[s][sEntery], ApartmentInfo[s][sEnterz]+0.5,35, 0, 1);
              	ApartmentPickup[s] = CreateDynamicPickup(1239, 1, ApartmentInfo[s][sEnterx], ApartmentInfo[s][sEntery], ApartmentInfo[s][sEnterz]);
           	}
        }
    }
Reply


Messages In This Thread
Adress house problem - by Adrianos - 09.02.2016, 12:09
Re: Adress house problem - by Adrianos - 09.02.2016, 14:47
Re: Adress house problem - by ikey07 - 09.02.2016, 15:00
Re: Adress house problem - by Adrianos - 09.02.2016, 15:10
Re: Adress house problem - by ikey07 - 09.02.2016, 15:20

Forum Jump:


Users browsing this thread: 1 Guest(s)