Take ID of player :O
#1

Good evening,

I try with GetPlayerPos save the ID of a player in a variable. But I can not I do not know why ...

Thank you for telling me how
Reply
#2

GetPlayerPos function is to get player's position. If you just want to save player's ID to a variable, then just do something like this:

pawn Код:
myVariable = playerid;
But if you mean the position, then try this:
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
That will store player's x, y and z coordinates to the x, y and z floats.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)