Returning multiple values in one funcion
#2

pawn Код:
stock GetPlayerAllRanks(playerid,&police,&swat){
  police = pRank[playerid][p_police_rank];
  swat = pRank[playerid][p_swat_rank];
  return true;
}

// usage:

new police_rank,swat_rank;
GetPlayerAllRanks(playerid,police_rank,swat_rank);
if(police_rank == 3){
...
}
Reply


Messages In This Thread
Returning multiple values in one funcion - by pagie1111 - 26.03.2010, 12:36
Re: Returning multiple values in one funcion - by wafffllesss - 26.03.2010, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)