18.05.2009, 16:59
I simply want to put the player's X/Y/Z coords into a static array, but I keep getting mismatches. Seems when you declare a value for an array cell, it must be numeric?
...\gamemodes\....pwn(89) : error 006: must be assigned to an array
...\gamemodes\....pwn(90) : error 006: must be assigned to an array
...\gamemodes\....pwn(91) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
Код:
new Float:tX,Float:tY,Float:tZ; GetPlayerPos(playerid, tX, tY, tZ); camera[playerid][1] = tX; camera[playerid][2] = tY; camera[playerid][3] = tZ;
...\gamemodes\....pwn(90) : error 006: must be assigned to an array
...\gamemodes\....pwn(91) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.