[BUG] Eliminar Pickub y TextLabel
#3

Aqui esta:

pawn Код:
stock LabelIPickup(hid)
{
    new string[125];
    if(CasasInfo[hid][hVenta] == 1)
    {
        format(string,sizeof(string),"{458B00}En Venta! \n {458B00}ID: {FFFFFF}%d \n {458B00}Precio: {FFFFFF}$%d\n {458B00}Nivel: {FFFFFF}%d",CasasInfo[hid][hSQLid], CasasInfo[hid][hPrecio],CasasInfo[hid][hNivel]);
        CasasLabel[hid] = CreateDynamic3DTextLabel(string ,0x00FF00AA,CasasInfo[hid][hEX], CasasInfo[hid][hEY], CasasInfo[hid][hEZ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID);
        CasasPickup[hid] = CreateDynamicPickup(1273, 1, CasasInfo[hid][hEX], CasasInfo[hid][hEY], CasasInfo[hid][hEZ]);
    }
    if(CasasInfo[hid][hVenta] == 0)
    {
        format(string,sizeof(string)," {458B00}Dueсo: {FFFFFF}%s \n {458B00}ID: {FFFFFF}%d",CasasInfo[hid][hDueno],CasasInfo[hid][hSQLid]);
        CasasLabel[hid] = CreateDynamic3DTextLabel(string ,0x00FFFFAA,CasasInfo[hid][hEX], CasasInfo[hid][hEY], CasasInfo[hid][hEZ], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID);
        CasasPickup[hid] = CreateDynamicPickup(1273, 1, CasasInfo[hid][hEX], CasasInfo[hid][hEY], CasasInfo[hid][hEZ]);
    }
    return 1;
}
pawn Код:
new CasasPickup[sizeof(CasasInfo)];
new Text3D:CasasLabel[sizeof(CasasInfo)];
Bueno como puedes ver al crear una casa la variable venta esta en 1 y automaticamente se crea el Pikub y el Text3D.

Muchas gracias.

Un saludo.
Reply


Messages In This Thread
[BUG] Eliminar Pickub y TextLabel - by oOFotherOo - 05.12.2012, 12:48
Respuesta: [BUG] Eliminar Pickub y TextLabel - by Fluid016 - 05.12.2012, 16:16
Respuesta: [BUG] Eliminar Pickub y TextLabel - by oOFotherOo - 05.12.2012, 16:40
Respuesta: [BUG] Eliminar Pickub y TextLabel - by Fluid016 - 05.12.2012, 16:58
Respuesta: [BUG] Eliminar Pickub y TextLabel - by oOFotherOo - 05.12.2012, 17:36

Forum Jump:


Users browsing this thread: 1 Guest(s)