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.