Hello i'm very new to C++ and have run into quite a problem, so i have written a simple function to return a players x, y & z origin, here it is:
float Orgx, Orgy, Orgz;
const float* ReturnORG(Vector3 Blah)
{
float Orgx = Blah.x;
float Orgy = Blah.y;
float Orgz = Blah.z;
return (float)((Orgx), (Orgx), (Orgx));
}
the problem is that i get an error saying:
"Error: return value type doesn't match function type"
I Can't seem to figure out what I'm doing wrong, any suggestions?