19.02.2011, 01:22
You can use PVars or just regular arrays.
Here's an example with PVars.
And then when you set the position.
Here's an example with PVars.
pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPVarFloat(playerid,"X",x);
SetPVarFloat(playerid,"Y",y);
SetPVarFloat(playerid,"Z",z);
pawn Код:
SetPlayerPos(playerid,GetPVarFloat(playerid,"X"),GetPVarFloat(playerid,"Y"),GetPVarFloat(playerid,"Z"));