[Include] Vector implementation in PAWN
#12

Thanks. And is it possible to set array like this?
Код:
enum PlayerEnum
{
	id,
	Float:health,
	Float:armour
}

new PlayerData[][PlayerEnum] =
{
	{1, 2.0, 3.0},
	{4, 5.0, 6.0}
};

new Vector:PlayerVector;

for(new i = 0; i < sizeof(PlayerData); i += 1)
{
	VECTOR_push_back_arr(PlayerVector, PlayerData[i]);
}
If I try to compile this code, I get this warning:
Код:
warning 229: index tag mismatch (symbol "PlayerData"): expected tag none ("_"), but found "PlayerEnum"
Reply


Messages In This Thread
Vector implementation in PAWN - by BigETI - 16.07.2018, 20:06
Re: Vector implementation in PAWN - by TroS - 16.07.2018, 20:11
Re: Vector implementation in PAWN - by BigETI - 19.07.2018, 07:12
Re: Vector implementation in PAWN - by TommyB - 19.07.2018, 07:23
Re: Vector implementation in PAWN - by BigETI - 19.07.2018, 07:29
Re: Vector implementation in PAWN - by iLearner - 19.07.2018, 07:30
Re: Vector implementation in PAWN - by CodeStyle175 - 19.07.2018, 08:40
Re: Vector implementation in PAWN - by GhostHacker9 - 19.07.2018, 09:03
Re: Vector implementation in PAWN - by Calisthenics - 12.10.2018, 09:36
Re: Vector implementation in PAWN - by 2Col - 27.10.2018, 12:10
Re: Vector implementation in PAWN - by BigETI - 27.10.2018, 12:13
Re: Vector implementation in PAWN - by 2Col - 27.10.2018, 14:00
Re: Vector implementation in PAWN - by BigETI - 27.10.2018, 15:37
Re: Vector implementation in PAWN - by 2Col - 27.10.2018, 16:30
Re: Vector implementation in PAWN - by d3Pedro - 27.10.2018, 23:09
Re: Vector implementation in PAWN - by 2Col - 11.11.2018, 08:15
Re: Vector implementation in PAWN - by BigETI - 11.11.2018, 21:30
Re: Vector implementation in PAWN - by 2Col - 12.11.2018, 09:18
Re: Vector implementation in PAWN - by BigETI - 12.11.2018, 10:04
Re: Vector implementation in PAWN - by 2Col - 12.11.2018, 10:52
Re: Vector implementation in PAWN - by BigETI - 12.11.2018, 13:22

Forum Jump:


Users browsing this thread: 9 Guest(s)