Switch troubles
#1

Is this a possible working code?
Because im getting a error by compiling i think i might do something wrong...

pawn Код:
new Variable[5];

public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(pickupid == Variable[]) // line 2801
    {
        switch(pickupid)
        {
            case 0: return 1; //something happens here
            case 1: return 1; //...
            case 2: return 1; //...
            case 3: return 1; //...
            case 4: return 1; //...
        }
    }
    return 1;
}
Код:
(2801) : error 029: invalid expression, assumed zero
Anyone please could take a look at the code and tell me whats wrong?
Thanks, regards.
Reply


Messages In This Thread
Switch troubles - by OldDirtyBastard - 30.05.2011, 14:59
AW: Switch troubles - by Nero_3D - 30.05.2011, 15:02
Re: Switch troubles - by OldDirtyBastard - 30.05.2011, 15:04
AW: Switch troubles - by Nero_3D - 30.05.2011, 15:47
Re: Switch troubles - by Jeffry - 30.05.2011, 15:52
Re: Switch troubles - by OldDirtyBastard - 30.05.2011, 16:04
Re: Switch troubles - by Jeffry - 30.05.2011, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)