01.01.2014, 17:36
Somebody tell me whats wrong on this code
Its saying tag missmatched at these 2 lines
pawn Код:
new vid, CarSlot, carlabel[MAX_VEHICLES], labelstring[50];
// Get a free carslot from the house
CarSlot = House_GetFreeCarSlot(HouseID);
// Check if there is a free carslot
if (CarSlot != -1)
{
// Create a new vehicle and get the vehicle-id
vid = CreateVehicle(cModel, cx, cy, cz, crot, Col1, Col2, 600);
format(labelstring, sizeof(labelstring), "Vehicle owned by %s", AVehicleData[vid][Owner]);
carlabel[vid] = Create3DTextLabel(labelstring, 0xFFFF00FF, cx, cy, cz, 50.0, 0,0);
Attach3DTextLabelToVehicle(carlabel[vid], vid, 0.0,0.0,0.0);
// Store the vehicle-id in the house's free carslot
AHouseData[HouseID][VehicleIDs][CarSlot] = vid;
Код:
carlabel[vid] = Create3DTextLabel(labelstring, 0xFFFF00FF, cx, cy, cz, 50.0, 0,0); Attach3DTextLabelToVehicle(carlabel[vid], vid, 0.0,0.0,0.0);