19.08.2012, 09:36
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:
That's how I understand it... Kind of how it sound - What would you like to return? (Rhetorical
)
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
}
)

