How to update 3D text label - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to update 3D text label (
/showthread.php?tid=148515)
How to update 3D text label -
DarkPower - 17.05.2010
I make when player bouth house that create 3D text on pickup whit his name and thats work but only problem is when house is not buyed text is: HOUSE FOR SALE and when i buy house its still: HOUSE FOR SALE, only when i restart server then create my name if house is buyed, my question is how i can update this code
pawn Код:
if(strcmp(hInfo[houseid][Name],"ForSale",true)==0)
{
HousePickup[houseid] = CreatePickup(1273, 23, iconX, iconY, iconZ); // WHEN IS NOT buyed
new string[256];
format(string, sizeof string, "Ova kuca je na prodaju\nCijena: %d$", hInfo[houseid][Cost]);
Create3DTextLabel(string,0x008080FF,hInfo[houseid][iconx]=iconX,hInfo[houseid][icony]=iconY,hInfo[houseid][iconz]=iconZ,40.0,0);
}
else
{
HousePickup[houseid] = CreatePickup(1273,23, iconX, iconY, iconZ); // THIS WILL CREATE WHEN IS HOUSE BUYED
new string2[256];
format(string2, sizeof string2, "Vlasnik: %s\nCijena: %d$", hInfo[houseid][Name],hInfo[houseid][Cost]);
Create3DTextLabel(string2,0x008080FF,hInfo[houseid][iconx]=iconX,hInfo[houseid][icony]=iconY,hInfo[houseid][iconz]=iconZ,40.0,0);
}
Re: How to update 3D text label -
Anwix - 17.05.2010
When the player types /buyprop (or your own buy property command) you should use:
Код:
Update3DTextLabelText(Text3D:id, color, text[])
Re: How to update 3D text label -
DarkPower - 17.05.2010
ok i will try tnx for sugestion