Doesn't work pickup
#1

Hello how to fix?
Enter to pickup but this doesn't work

Код:
switch(HouseData[i][Parduodamas])
            {
                case 0:
                {
                    format(labelstring,sizeof(labelstring),"Namas Nr. %i parduodamas\n %s\nNamo savininkas: %s\nNamo kaina: %i\nNamo pirkimas ENTER.", HouseData[i][ID], HouseData[i][Pavadinimas], HouseData[i][Savininkas]);
                    PickupData[i][Namas] = CreatePickup(1272, 1, HouseData[i][PositionX], HouseData[i][PositionY], HouseData[i][PositionZ], -1);
                }
                case 1:
                {
                    format(labelstring,sizeof(labelstring),"Namas Nr. %i\n %s\nNamo savininkas: %s\nNamo valdymas ENTER.", HouseData[i][ID], HouseData[i][Pavadinimas], HouseData[i][Savininkas]);
                    PickupData[i][Namas] = CreatePickup(1273, 1, HouseData[i][PositionX], HouseData[i][PositionY], HouseData[i][PositionZ], -1);
                }
            }
            Create3DTextLabel(labelstring, -1, HouseData[i][PositionX], HouseData[i][PositionY], HouseData[i][PositionZ]+0.75, 40.0, 0, 0);
pickups enum:

Код:
enum PickupsData {
    Kioskas,
    Namas,
    Namas2,
	Picerija,
    Valytojai,
};
new PickupData[MAX_PICKUPS][PickupsData];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)