24.08.2010, 12:29
hi all, i need little help, how to make function like for example GetPlayerPos(x,y,z);
and it makes x=5 y=6 z=7 its just an example, how to that?
and it makes x=5 y=6 z=7 its just an example, how to that?
new
a = 1;
myFunc()
{
a = 5;
}
new
a = 1;
myFunc(&blah)
{
blah = 5;
}
// usage
myFunc(a);
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;
}
}