20.02.2014, 20:07
Quote:
Can you post the loading and saving system codes for positions?
|
Loading:
pawn Код:
//Under the login dialog
pInfo[playerid][posX] = dini_Float(path,"posX");
pInfo[playerid][posY] = dini_Float(path,"posY");
pInfo[playerid][posZ] = dini_Float(path,"posZ");
pInfo[playerid][Interior] = dini_Int(path,"Interior");
pInfo[playerid][VirtualWorld] = dini_Int(path,"VirtualWorld");
pawn Код:
//Under OnPlayerDisconnect
new Float:ppX,Float:ppY,Float:ppZ;
GetPlayerPos(playerid,ppX,ppY,ppZ);
dini_FloatSet(path, "posX", ppX);
dini_FloatSet(path, "posY", ppY);
dini_FloatSet(path, "posZ", ppZ);
dini_IntSet(path, "Interior", GetPlayerInterior(playerid));
dini_IntSet(path, "VirtualWorld", GetPlayerVirtualWorld(playerid));