12.12.2014, 19:09
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:
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,
EndX,
EndY,
EndZ
}
new TPInfo[MAX_TELEPORTS][e_TPInfo], tpid;
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;