Function that return more than 1 value.
#4

pawn Код:
stock GetVehicleTrailerPos(vehicleid, trailerid, &Float:x, &Float:y, &Float:z){
    if(IsTrailerAttachedToVehicle(vehicleid)){
        if(GetVehicleTrailer(vehicleid) == trailerid){
            GetVehiclePos(trailerid, x, y, z);
            return 1;
        }else{
            return 0;
        }
    }else{
        return 0;
    }
}
so is this ok?
Reply


Messages In This Thread
Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 12:29
Re: Function that return more than 1 value. - by Donny_k - 24.08.2010, 12:51
Re: Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 12:56
Re: Function that return more than 1 value. - by CoaPsyFactor - 24.08.2010, 13:26
Re: Function that return more than 1 value. - by RSX - 24.08.2010, 13:57

Forum Jump:


Users browsing this thread: 2 Guest(s)