SA-MP Forums Archive
Warning: Tag Mismatch [ Rep+ If you help ] - 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)
+--- Thread: Warning: Tag Mismatch [ Rep+ If you help ] (/showthread.php?tid=371014)



Warning: Tag Mismatch [ Rep+ If you help ] - Richard Steinheimer - 22.08.2012

Alright so ive been sitting here trying to fix this tag mismatch warning.

Код:
					Houses[idx][PickupID] = CreateDynamic3DTextLabel(szFileStr, COLOR_WHITE, Houses[idx][EnterX], Houses[idx][EnterY], Houses[idx][EnterZ], 30, -1, -1, 0, -1, -1, -1, 100.0);
Any ideas?

NOTE: I'll rep you if you help me.


Re: Warning: Tag Mismatch [ Rep+ If you help ] - Akira297 - 22.08.2012

Rather all the cords are -1. ?


Re: Warning: Tag Mismatch [ Rep+ If you help ] - Richard Steinheimer - 22.08.2012

That cannot be the problem. I need someone to repost the createdynamic3dtextlabel as the correct format. I cannot do it, so i need someone to do that for me.

- Thanks.

Код:
format(szFileStr, sizeof(szFileStr), "This house is\n for sale!\nDescription: %s\nCost: $%d\nTo buy this house type /buyhouse",Houses[idx][Description],Houses[idx][HousePrice]);
Houses[idx][PickupID] = CreateDynamic3DTextLabel(szFileStr, COLOR_WHITE, Houses[idx][EnterX], Houses[idx][EnterY], Houses[idx][EnterZ], 30, -1, -1, 0, -1, -1, -1, 100.0);
Houses[idx][PickupID] = CreateStreamPickup(1273, 1, Houses[idx][EnterX], Houses[idx][EnterY], Houses[idx][EnterZ],PICKUP_RANGE1);



Re: Warning: Tag Mismatch [ Rep+ If you help ] - Akira297 - 22.08.2012

Код:
CreateDynamic3DTextLabel("/buyhouse",COLOR_??????,0,-0,0,0);
Alittle tired, like this?


Re: Warning: Tag Mismatch [ Rep+ If you help ] - Richard Steinheimer - 22.08.2012

Nope.. It did not work at all.


Re: Warning: Tag Mismatch [ Rep+ If you help ] - [EuG]ZeRoGoD - 22.08.2012

Код:
if(HouseInfo[idx][hSetted] == 1)
            {
                if(HouseInfo[idx][hOwned] == 0)
                {
                    format(PropertyString,sizeof(PropertyString),"\n ID: %d \nPrice: $%d \n Description: %s \n Level Required: %d",HouseInfo[idx][hWorld], HouseInfo[idx][hValue],HouseInfo[idx][hDiscription], HouseInfo[idx][hLevel]);
                    HouseLabel[idx] = Create3DTextLabel(PropertyString ,COLOR_WHITE,HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez],25, 0, 1);
                    HousePickup[idx] = CreateDynamicPickup(1273, 1, HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez]);
                }
                else
                {
                    format(PropertyString,sizeof(PropertyString),"%s \n Owner: %s \n House ID: %d \n Rent Price: $%d \n Description: %s \n /rentroom",HouseInfo[idx][hMessage],HouseInfo[idx][hOwner],HouseInfo[idx][hWorld], HouseInfo[idx][hRent], HouseInfo[idx][hDiscription]);
                    HouseLabel[idx] = Create3DTextLabel(PropertyString ,COLOR_RED,HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez],25, 0, 1);
                    HousePickup[idx] = CreateDynamicPickup(1272, 1, HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez]);
                }
            }
    }
    return 1;
}
object

Код:
CreateDynamicObject(19471,HouseInfo[idx][hEntrancex], HouseInfo[idx][hEntrancey], HouseInfo[idx][hEntrancez],Float:rx,Float:ry,Float:rz,-1,-1,-1,200);
replace Float:rx,Float:ry,Float:rz with your rotation co-ords (if any).

If you have none - put them as 0.

try this not sure if it will work but best i can get :P


Re: Warning: Tag Mismatch [ Rep+ If you help ] - Richard Steinheimer - 22.08.2012

What about this?

Код:
format(szFileStr, sizeof(szFileStr), "This house is Owned.\nDescription: %s\nOwner: %s",Houses[h][Description],Houses[h][Owner]);
UpdateDynamic3DTextLabelText(Houses[h][PickupID], COLOR_WHITE, szFileStr);