Posts: 220
Threads: 54
Joined: Jan 2014
Hello!
I have this error:
warning 224: indeterminate array size in "sizeof" expression (symbol "")
In this line:
for(entry = 0; entry < sizeof(WeedInfo); entry++)
How to resolve?
THX!
Posts: 220
Threads: 54
Joined: Jan 2014
error 033: array must be indexed (variable "WeedInfo").
Posts: 279
Threads: 11
Joined: Jul 2012
Reputation:
0
Put your code of creating WeedInfo
Posts: 220
Threads: 54
Joined: Jan 2014
Only enum?
pawn Код:
enum WInfo
{
ID,
VW,
Inte,
Planteur,
Float:PosX,
Float:PosY,
Float:PosZ,
Variete,
Temps,
Grammes
};
new WeedInfo[][WInfo];
Posts: 220
Threads: 54
Joined: Jan 2014
Posts: 220
Threads: 54
Joined: Jan 2014
Yes but I do not want to limit, that's the rub.
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
I'm sure you don't need more than MAX_PLAYERS, so that should do it, yes? (Ignore what it implies, but you definitely shouldn't need MORE than 500!)
If you are scared of over-riding the 50 limit - you can use assert (if your variable is const)