Y_Ini Position
#7

Change your enum to
pawn Код:
enum pInfo
{
    pPass[129],
    pCash,
    Float:pPos[3],
    pAdmin,
    pKills,
    pDeaths
}
Then on your .ini load function or w/e, do
pawn Код:
INI_Float("X", PlayerInfo[playerid][pPos][0]);
INI_Float("Y", PlayerInfo[playerid][pPos][1]);
INI_Float("Z", PlayerInfo[playerid][pPos][2]);
Since it is already global, you can use it anywhere in your script.

PlayerInfo[playerid][pPos][0] = x position
PlayerInfo[playerid][pPos][1] = y position
PlayerInfo[playerid][pPos][2] = z position

So then, you can do

Код:
SetPlayerPos(playerid, PlayerInfo[playerid][pPos][0], PlayerInfo[playerid][pPos][1], PlayerInfo[playerid][pPos][2]);
Reply


Messages In This Thread
Y_Ini Position - by Lz - 02.12.2012, 21:27
Re: Y_Ini Position - by ReneG - 02.12.2012, 21:33
Re: Y_Ini Position - by Lz - 02.12.2012, 21:41
Re: Y_Ini Position - by Lz - 02.12.2012, 21:52
Re: Y_Ini Position - by ReneG - 02.12.2012, 22:04
Re: Y_Ini Position - by Lz - 02.12.2012, 22:07
Re: Y_Ini Position - by ReneG - 02.12.2012, 22:11
Re: Y_Ini Position - by Lz - 02.12.2012, 22:26

Forum Jump:


Users browsing this thread: 2 Guest(s)