View Single Post
Old 08/10/2013, 10:29 PM   #1
Fierro
Big Clucker
 
Join Date: Sep 2011
Posts: 60
Reputation: 0
Question warning 224: indeterminate array size in "sizeof" expression (symbol "")

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?
__________________
Fierro is offline   Reply With Quote