10.04.2015, 00:52
Me equivoquй, no estб creado con los 3dtextlabels, estб asн:
pawn Код:
if(hInfo[houseid][hSale] == 0)
{
format(string, 256, ""white"CasaID: "red"%d\n"green"Casa en Venta\n"white"Precio: "red"$%d\n"white"Interior: "green"%s\n"white"Nivel: "red"%d\n\n"white"/comprarcasa para comprarla.", houseid, hInfo[houseid][hPrice], hInfo[houseid][hIName], hInfo[houseid][hLevel]);
hInfo[houseid][hMapIcon] = CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], SALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);
hInfo[houseid][hPickup] = CreateDynamicPickup(SALE_PICKUP, 1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], 0, 0, -1, STREAM_DISTANCES);
}
else
{
if(hInfo[houseid][hLocked] == 0)
{
if(strcmp(hInfo[houseid][hName], "None", true) == 0)
{
format(string, 256, ""white"CasaID: "red"%d\n"green"Abierta\n"white"Dueсo: "red"%s\n"white"Interior: "green"%s\n"white"Nivel: "red"%d\n"white"Precio: "green"$%d\n\n"white"Use {FF0000}/henter {FFFFFF}para entrar.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
}
else
{
format(string, 256, ""white"CasaID: "red"%d\n"green"Abierta\n"white"Dueсo: "red"%s\n"white"Nombre: "green"%s\n"white"Interior: "red"%s\n"white"Nivel: "red"%d\n"white"Precio: "green"$%d\n\n"white"Use {FF0000}/henter {FFFFFF}para entrar..", houseid, hInfo[houseid][hOwner], hInfo[houseid][hName], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
}
}
else
{
if(strcmp(hInfo[houseid][hName], "None", true) == 0)
{
format(string, 256, ""white"CasaID: "red"%d\n"red"Cerrada\n"white"Dueсo: "red"%s\n"white"Interior: "green"%s\n"white"Nivel: "red"%d\n"white"Precio: "green"$%d\n\n"white"Use {FF0000}/henter {FFFFFF}para entrar..", houseid, hInfo[houseid][hOwner], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
}
else
{
format(string, 256, ""white"CasaID: "red"%d\n"red"Cerrada\n"white"Dueсo: "red"%s\n"white"Nombre: "green"%s\n"white"Interior: "red"%s\n"white"Nivel: "red"%d\n"white"Precio: "green"$%d\n\n"white"Use {FF0000}/henter {FFFFFF}para entrar.", houseid, hInfo[houseid][hOwner], hInfo[houseid][hName], hInfo[houseid][hIName], hInfo[houseid][hLevel], hInfo[houseid][hPrice]);
}
}
hInfo[houseid][hMapIcon] = CreateDynamicMapIcon(hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], NOTSALE_ICON, -1, 0, 0, -1, STREAM_DISTANCES, MAPICON_LOCAL);
hInfo[houseid][hPickup] = CreateDynamicPickup(NOTSALE_PICKUP, 1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], 0, 0, -1, STREAM_DISTANCES);
}
hInfo[houseid][hLabel] = CreateDynamic3DTextLabel(string, -1, hInfo[houseid][hPickupP][0], hInfo[houseid][hPickupP][1], hInfo[houseid][hPickupP][2], STREAM_DISTANCES, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, 0, 0, -1, STREAM_DISTANCES);
hInfo[houseid][hCP] = CreateDynamicCP(hInfo[houseid][ExitCPPos][0], hInfo[houseid][ExitCPPos][1], hInfo[houseid][ExitCPPos][2], 1.0, hInfo[houseid][hWorld], hInfo[houseid][hInterior], -1, 15.0);
return 1;
}