05.12.2012, 16:40
Aqui esta:
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.
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)];
Muchas gracias.
Un saludo.

