22.05.2012, 12:43
Код:
House_CreateEntrance(HouseID) { new msg[128], Float:x, Float:y, Float:z; x = HInfo[HouseID][HX]; y = HInfo[HouseID][HY]; z = HInfo[HouseID][HZ]; if(HInfo[HouseID][Owned] == true) { HInfo[HouseID][PickupID] = CreateDynamicPickup(1272, 1, x, y, z, 0); format(msg, 128, "Owner: %s[128]", HInfo[HouseID][Owner]); HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0); if(ShowBoughtHouses == true) return HInfo[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 32, 0, 0, 0, -1, 150.0); } else { HInfo[HouseID][PickupID] = CreateDynamicPickup(1273, 1, x, y, z, 0); format(msg, 128, "For Sale"); HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0); HInfo[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 31, 0, 0, 0, -1, 150.0); } return 1; }
Код:
C:\Users\Matt Laptop\Desktop\RP\pawno\include\houses.inc(13) : warning 213: tag mismatch C:\Users\Matt Laptop\Desktop\RP\pawno\include\houses.inc(20) : warning 213: tag mismatch
Код:
HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);
Код:
HInfo[HouseID][DoorText] = CreateDynamic3DTextLabel(msg, GREEN, x, y, z + 1.0, 50.0);