[HELP] tag mismatch
#1

pawn Код:
stock SavePoint(id)
{
    new szQuery[2048];
   
    format(szQuery, sizeof(szQuery), "UPDATE `dynpoints` SET \
        `pointname` = '%s', \
        `type` = '%d', \
        `posx` = '%f', \
        `posy` = '%f', \
        `posz` = '%f', \
        `pos2x` = '%f', \
        `pos2y` = '%f', \
        `pos2z` = '%f', \
        `vw` = '%d', \
        `capturable` = '%d', \
        `captureplayername` = '%s', \
        `playernamecapping` = '%s', \
        `cappergroup` = '%d', \
        `cappergroupowned` = '%d', \
        `inactive` = '%d', \
        `materials` = '%d', \
        `timestamp1` = '%d', \
        `timestamp2` = '%d' WHERE `id` = %d"
,
        g_mysql_ReturnEscaped(Points[id][poName], MainPipeline),
        DynPoints[id][poType],
        DynPoints[id][poPos][0],
        DynPoints[id][poPos][1],
        DynPoints[id][poPos][2],
        DynPoints[id][poPos2][0],
        DynPoints[id][poPos2][1],
        DynPoints[id][poPos2][2],
        DynPoints[id][pointVW],
        DynPoints[id][poCapturable],
        g_mysql_ReturnEscaped(DynPoints[id][CapturePlayerName], MainPipeline),
        g_mysql_ReturnEscaped(DynPoints[id][PlayerNameCapping], MainPipeline),
        DynPoints[id][poCapperGroup],
        DynPoints[id][poCapperGroupOwned],
        DynPoints[id][poInactive],
        DynPoints[id][poMaterials],
        DynPoints[id][poTimestamp1],
        DynPoints[id][poTimestamp2],
        id+1
    )
       
    mysql_function_query(MainPipeline, szQuery, false, "OnQueryFinish", "i", SENDDATA_THREAD)
}
Error:

pawn Код:
./includes/dynamic/points.pwn(263 -- 264) : warning 213: tag mismatch
Lines in question:

pawn Код:
`timestamp2` = '%d' WHERE `id` = %d",
g_mysql_ReturnEscaped(Points[id][poName], MainPipeline),
Reply
#2

Also, I forgot to include the enum, so here it is:

pawn Код:
enum PointData
{
    poID,
    poType,
    poName[32],
    Float:poPos[3],
    Float:poPos2[3],
    Float:CapturePos[3],
    CapturePlayerName[MAX_PLAYER_NAME], // The person who SUCCESSFULLY captured the point.
    PlayerNameCapping[MAX_PLAYER_NAME], // The person who is ATTEMPTING to capture the point.
    poCapperGroup, // The ID of the group who is ATTEMPTING to capture the point.
    poCapperGroupOwned, // The ID of the group who actually OWNS the point.
    poCapturable,
    poInactive,
    poPickupID,
    poPickup2ID,
    poMaterials,
    pointVW,
    poTimestamp1, // Timestamp til becomes capturable
    poTimestamp2, // Timestamp til is captured
    Text3D:poTextID
}
new DynPoints[MAX_POINTS][PointData];
Reply
#3

Show us line of error. One line bellow and one line above
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)