Strange tag mismatch.
#1

Код:
Current directory: D:\VERY IMPORTANT STUFF\SA-MP Scripts\EL-RP\gamemodes
el-rp.pwn(50762) : warning 213: tag mismatch
el-rp.pwn(50767) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          11548 bytes
Code size:          1995140 bytes
Data size:         27032600 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:29055672 bytes

2 Warnings.
================ READY ================
Code :
pawn Код:
stock LoadHouseCPs()
{
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
        if(HouseInfo[h][hOwned] == 0)
        {
/*warn line 1*/            HouseInfo[h][h3DText]=Create3DTextLabel("[Property]\n For Sale!",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
            HouseInfo[h][hCPID]=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
        }
        if(HouseInfo[h][hOwned] == 1)
        {
/*warn line 2*/            HouseInfo[h][h3DText]=Create3DTextLabel("[Property]\n Owned",0x00AE00FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+0.75,20.0,0,1);
            HouseInfo[h][hCPID]=CreateDynamicCP(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 1.5, -1, -1, -1, 25.0);
        }
    }
    return 1;
}
Reply
#2

pawn Код:
playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",Color,X,Y,Z,40.0);
Use the mentioned example, and you'll find you've added two (or one) extra field after:

pawn Код:
"[Property]\n Owned"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)