error 008: must be a constant expression; assumed zero
#1

pawn Код:
enum checkpointsdata
{
carcp,

}
new checkpoints[checkpointsdata];
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{

    switch(checkpointid)
    {
        case checkpoints[carcp]: // this line makes the error!
        {
           
            return 1;
        }
    }
    return 1;

}
How to fix this error?
Reply


Messages In This Thread
error 008: must be a constant expression; assumed zero - by ajwar - 14.02.2011, 17:01
Re: error 008: must be a constant expression; assumed zero - by HyperZ - 14.02.2011, 17:13
Re: error 008: must be a constant expression; assumed zero - by ajwar - 14.02.2011, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)