The problem is pretty self explanatory.
As
regalis said you are not setting origin correctly! For retrieving and setting data it should have origin[id] since it is a 2 dimensional array.
Ideally you should use a declared size for arrays in your function.
1) For error checking if you try going beyond the size
2) So Pawn knows exactly how much memory to allocate.
Code:
public function1(id)
{
new pOrigin[3]
get_user_origin(id, pOrigin)
function2(pOrigin)
}
function2(origin[3])
{
client_print(0, print_chat, "X: %i - Y: %i - Z: %i", origin[0], origin[1], origin[2])
}
__________________