warning 213: tag mismatch
#1

#define MAX_TELEPORTS 300

enum
e_TPInfo
{
StartX,
StartY,
StartZ,
EndX,
EndY,
EndZ
};
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;


TPInfo[tpid][StartX] = pX; (warning 213: tag mismatch)
Reply
#2

Well, I think that TPInfo[playerid][StartX] it's an float. So you need to specified this, X, Y, Z [StartX, StartY, StartZ are floats]. So here's the code:

pawn Код:
#define MAX_TELEPORTS 300

enum
e_TPInfo
{
    Float:StartX,
    Float:StartY,
    Float:StartZ,
    EndX,
    EndY,
    EndZ
}
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;
And you should use this too for EndZ, EndX, EndY because I think them are too position, so them are floats.

If all of them represent one position, then the correct code it's:

pawn Код:
#define MAX_TELEPORTS 300

enum
e_TPInfo
{
    Float:StartX,
    Float:StartY,
    Float:StartZ,
    Float:EndX,
    Float:EndY,
    Float:EndZ
}
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;
Reply
#3

Quote:
Originally Posted by HY
Посмотреть сообщение
Well, I think that TPInfo[playerid][StartX] it's an float. So you need to specified this, X, Y, Z [StartX, StartY, StartZ are floats]. So here's the code:

pawn Код:
#define MAX_TELEPORTS 300

enum
e_TPInfo
{
    Float:StartX,
    Float:StartY,
    Float:StartZ,
    EndX,
    EndY,
    EndZ
}
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;
And you should use this too for EndZ, EndX, EndY because I think them are too position, so them are floats.

If all of them represent one position, then the correct code it's:

pawn Код:
#define MAX_TELEPORTS 300

enum
e_TPInfo
{
    Float:StartX,
    Float:StartY,
    Float:StartZ,
    Float:EndX,
    Float:EndY,
    Float:EndZ
}
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;
Oh, you right. Thank you mate.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)