warning 213: tag mismatch - 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 213: tag mismatch (
/showthread.php?tid=550425)
warning 213: tag mismatch -
Lirbo - 12.12.2014
#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)
Re: warning 213: tag mismatch -
HY - 12.12.2014
Well, I think that TPInfo[playerid][Start
X] 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;
Re: warning 213: tag mismatch -
Lirbo - 12.12.2014
Quote:
Originally Posted by HY
Well, I think that TPInfo[playerid][Start X] 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.