warning 224: indeterminate array size in "sizeof" expression (symbol "")
#1

pawn Code:
public ChangePlayerDecisions(playerid,decisions[])
{
    new fm[128];
    for(new i = 0; i < sizeof(decisions); i++)//line 523
    {
        PlayerDecisions[playerid][i] = decisions[i];
        format(fm,sizeof(fm),"/%i: %s",i+1,decisionMessages[i]);
        OnPlayerDecisionsChange(playerid,decisions);
    }
    return 1;
}
Error:
Code:
(523) warning 224: indeterminate array size in "sizeof" expression (symbol "")
Can someone please explain? I'm using sizeof with an existing symbol, so why is it blank there? Is it undetermined somehow because I didn't specify a length in the function's declaration/definition?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)