23.06.2010, 15:01
Hi sa-mp,
Appearently whenever I use a string in a 3DTextLabel, it's simply not showing up.
Does anyone know a reason why it isn't working?
Here a bit of the code (simply all of it ):
The 'House for sale' label is working on every house non-bought.
The other label is not working on any house.
Screenshots:
Thank you for helping me fixing this in advance,
KnooL
Appearently whenever I use a string in a 3DTextLabel, it's simply not showing up.
Does anyone know a reason why it isn't working?
Here a bit of the code (simply all of it ):
pawn Код:
new name[128];
pawn Код:
if(HouseInfo[houseid][hSellable] == 1){
HouseInfo[houseid][hPickup] = CreatePickup(1273, 23, HouseInfo[houseid][hExitX], HouseInfo[houseid][hExitY], HouseInfo[houseid][hExitZ]); // not bought
HouseInfo[houseid][hText] = Create3DTextLabel("House for sale",COLOR_GREEN,HouseInfo[houseid][hExitX], HouseInfo[houseid][hExitY], HouseInfo[houseid][hExitZ]+2,40.0,0);
} else {
HouseInfo[houseid][hPickup] = CreatePickup(1272,23, HouseInfo[houseid][hExitX], HouseInfo[houseid][hExitY], HouseInfo[houseid][hExitZ]); // bought
format(name,sizeof(name),"%s's House",HouseInfo[houseid][hName]);
HouseInfo[houseid][hText] = Create3DTextLabel(name,0x8D8DFF00,HouseInfo[houseid][hExitX], HouseInfo[houseid][hExitY], HouseInfo[houseid][hExitZ]+2,40.0,0);
}
The other label is not working on any house.
Screenshots:
Thank you for helping me fixing this in advance,
KnooL