About return 0;
#8

From my understanding - Might be a load of bullshit - I think returns basically have two ways they can be used, firstly been whether the function/command (Whatever it it) should be processed (True/False) - Like returning unknown command (return 0; - Don't process). The second way is pretty much the same but can return many values, for example:
pawn Code:
stock GetAdmin(playerid)
{
    if(pinfo[playerid][padmin] == 1)
        return 1
    else if(pinfo[playerid][padmin] == 2)
        return 2
    else if(pinfo[playerid][padmin] == 3)
        return 3
}
That's how I understand it... Kind of how it sound - What would you like to return? (Rhetorical )
Reply


Messages In This Thread
About return 0; - by budelis - 19.08.2012, 08:18
Re: About return 0; - by [MM]RoXoR[FS] - 19.08.2012, 08:32
Re: About return 0; - by IceMeteor - 19.08.2012, 08:43
Re: About return 0; - by budelis - 19.08.2012, 09:12
Re : About return 0; - by ricardo178 - 19.08.2012, 09:17
Re: About return 0; - by budelis - 19.08.2012, 09:25
Re: About return 0; - by playbox12 - 19.08.2012, 09:35
Re: About return 0; - by ryansheilds - 19.08.2012, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)