Sizeof 2D Array
#1

Hello there,

I have this array:

pawn Код:
enum _robinfos{
    rName[64],
    rPay,
    Float:rX,
    Float:rY,
    Float:rZ,
    rID
}

new RobInfos[6][100][_robinfos];
And when I want to get size of RobInfos[1] I do this
pawn Код:
sizeof(RobInfos[1])
but from some reason I get this error
Код:
D:\Roleplay\gamemodes\Robbers Stylez.pwn(172) : error 001: expected token: "]", but found "-integer value-"
D:\Roleplay\gamemodes\Robbers Stylez.pwn(172) : warning 215: expression has no effect

4 Errors.
D:\Roleplay\gamemodes\Robbers Stylez.pwn(172) : error 001: expected token: ";", but found "]"
D:\Roleplay\gamemodes\Robbers Stylez.pwn(172) : error 029: invalid expression, assumed zero
D:\Roleplay\gamemodes\Robbers Stylez.pwn(172) : fatal error 107: too many error messages on one line
can anyone tell me what am I doing wrong here...
Reply


Messages In This Thread
Sizeof 2D Array - by CoaPsyFactor - 19.03.2013, 10:03
Re: Sizeof 2D Array - by Stylock - 19.03.2013, 10:19
Re: Sizeof 2D Array - by CoaPsyFactor - 19.03.2013, 19:18
Re: Sizeof 2D Array - by RyDeR` - 19.03.2013, 19:20
Re: Sizeof 2D Array - by CoaPsyFactor - 20.03.2013, 00:08
Re: Sizeof 2D Array - by LarzI - 20.03.2013, 01:28
Re: Sizeof 2D Array - by mastermax7777 - 20.03.2013, 03:38
Re: Sizeof 2D Array - by LarzI - 20.03.2013, 07:00
Re: Sizeof 2D Array - by mastermax7777 - 20.03.2013, 07:34
Re: Sizeof 2D Array - by LarzI - 20.03.2013, 08:05

Forum Jump:


Users browsing this thread: 1 Guest(s)