Small question about returns
#1

So, I've got a little question in a case;
What will happen if we return in dialogs, dynamic pickups, checkpoints, etc.
So, what's the difference here and what will happen here:
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(pickupid == RandPick[0])
    {
        cmd_cnr(playerid,"");
        return 1;
             }
             return 1;
}
and here:
pawn Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
    if(pickupid == RandPick[0])
    {
        cmd_cnr(playerid,"");
    }
             return 1;
}
Will there be any difference if I return 1 inside after using that "cmd_cnr(playerid, "");"?
Reply


Messages In This Thread
Small question about returns - by biker122 - 18.09.2014, 09:43
Re: Small question about returns - by IamPRO - 18.09.2014, 10:03
Re: Small question about returns - by biker122 - 18.09.2014, 11:58
Re: Small question about returns - by Stinged - 18.09.2014, 12:06
Re: Small question about returns - by biker122 - 18.09.2014, 12:16
Re: Small question about returns - by IamPRO - 18.09.2014, 13:07
Re: Small question about returns - by biker122 - 18.09.2014, 13:32
Re: Small question about returns - by Vince - 18.09.2014, 13:45
Re: Small question about returns - by biker122 - 18.09.2014, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)