Little problem with aduty
#2

Remove

pawn Код:
new Float:PosX, Float:PosY, Float:PosZ, Float:PosA;
and put

pawn Код:
new Float: playersSavedPosition[MAX_PLAYERS][4];
near the top of your script.


Change

pawn Код:
GetPlayerPos(playerid, PosX, PosY, PosZ);
GetPlayerFacingAngle(playerid, PosA);
to

pawn Код:
GetPlayerPos(playerid, playersSavedPosition[playerid][0], playersSavedPosition[playerid][1], playersSavedPosition[playerid][2]);
GetPlayerFacingAngle(playerid, playersSavedPosition[playerid][3]);

Change

pawn Код:
SetPlayerPos(playerid, PosX, PosY, PosZ);
SetPlayerFacingAngle(playerid, PosA);
to

pawn Код:
SetPlayerPos(playerid, playersSavedPosition[playerid][0], playersSavedPosition[playerid][1], playersSavedPosition[playerid][2]);
SetPlayerFacingAngle(playerid, playersSavedPosition[playerid][3]);
Reply


Messages In This Thread
Little problem with aduty - by RenSoprano - 22.10.2012, 20:38
Re: Little problem with aduty - by SuperViper - 22.10.2012, 22:47
Re: Little problem with aduty - by RenSoprano - 24.10.2012, 18:00
Re: Little problem with aduty - by ThePhenix - 24.10.2012, 18:11
Re: Little problem with aduty - by Jarnu - 24.10.2012, 18:14
Re: Little problem with aduty - by RenSoprano - 24.10.2012, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)