02.09.2012, 15:25
Hi, i was wondering the difference in a function if it has to pass by reference or not.
E.g
Yes i know on the 2nd example you have to create variable to pass by reference, but also in the first function you have to create variables to get the vehicle position? Any difference?
E.g
pawn Код:
GetPlayerVehiclePos(playerid, vehicleid, Float:x, Float:y, Float:z) // its just an example of the function
GetPlayerVehiclePos(playerid, vehicleid, &Float:x, &Float:y, &Float:z)