Lorenc
07-23-2011, 04:07 AM
native Float:GetPlayerPos(clientID, axis);
/* GetPlayerPos
* returns a Float referring to the position value on the specified axis (X_AXIS = X, Y_AXIS = Y, Z_AXIS = Z)
* returns 0: invalid clientID / invalid axis parameter
*/
If I did:
new Float: playerPos;
GetPlayerPos(clientID, playerPos);
Would that output:
X: 0.0 Y: 0.0 Z: 0.0
If I were at that location, usually the function should be like
native GetPlayerPos(clientID, Float:X, Float:Y, Float:Z);
That way we can gather the X, Y, Z
May not of made sense I couldn't explain this lol
native GetPlayerPos(clientID, &x, &y, &z);
/* GetPlayerPos
* returns a Float referring to the position value on the specified axis (X_AXIS = X, Y_AXIS = Y, Z_AXIS = Z)
* returns 0: invalid clientID / invalid axis parameter
*/
If I did:
new Float: playerPos;
GetPlayerPos(clientID, playerPos);
Would that output:
X: 0.0 Y: 0.0 Z: 0.0
If I were at that location, usually the function should be like
native GetPlayerPos(clientID, Float:X, Float:Y, Float:Z);
That way we can gather the X, Y, Z
May not of made sense I couldn't explain this lol
native GetPlayerPos(clientID, &x, &y, &z);