02.12.2012, 22:11
Change your enum to
Then on your .ini load function or w/e, do
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
pawn Код:
enum pInfo
{
pPass[129],
pCash,
Float:pPos[3],
pAdmin,
pKills,
pDeaths
}
pawn Код:
INI_Float("X", PlayerInfo[playerid][pPos][0]);
INI_Float("Y", PlayerInfo[playerid][pPos][1]);
INI_Float("Z", PlayerInfo[playerid][pPos][2]);
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]);