25.07.2010, 01:33
hey why doesnt this work the first part work it shows the id and everything but when its brought it doesnt show the textlabel
pawn Код:
new string[128],string2[128],string3[128];
if(strcmp(hInfo[hi][Name],"ForSale",true)==0)
{
format(string,sizeof(string),"House Available For Sale");
format(string2,sizeof(string2),"HouseId:%d Cost Price:%d Sell Price:%d",hi,hInfo[hi][Cost],hInfo[hi][Sell]);
hInfo[hi][hText] = Text3D:CreateDynamic3DTextLabel(string, LIME, iconX, iconY, iconZ, 30,INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0,-1,-1, -1, 100);
hInfo[hi][hTextc] = Text3D:CreateDynamic3DTextLabel(string2, LIME, iconX, iconY, iconZ-0.3, 30,INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0,-1,-1, -1, 100);
HousePickup[hi] = CreateDynamicCP(iconX, iconY, iconZ, 1.5, -1, -1, -1, 30.0);
}
else if(strcmp(hInfo[hi][Name],"ForSale",true)!=0)
{
format(string3,sizeof(string3),"House Is Brought & Owned By %s~n~ House Id:%d", hInfo[hi][Name],hi);
UpdateDynamic3DTextLabelText(hInfo[hi][hText], 0x8D8DFF00, string3);
DestroyDynamic3DTextLabel(hInfo[hi][hTextc]);
HousePickup[hi] = CreateDynamicCP(iconX, iconY, iconZ, 1.5, -1, -1, -1, 30.0);
}