05.07.2010, 22:54
Hmm, I can't realy understand why the Skin won't save, as I'm using the same method - and that works 100%.
For the Position - I use this:
In you Playerinfo enum:
Under your Login Function
Under your Data Save Function
Tell me if that works.
For the Position - I use this:
In you Playerinfo enum:
Code:
Float:pPosX, Float:pPosY, Float:pPosZ,
Code:
pInfo[playerid][pPosX] = dini_Float(File, "PosX"); pInfo[playerid][pPosY] = dini_Float(File, "PosY"); pInfo[playerid][pPosZ] = dini_Float(File, "PosZ"); SetSpawnInfo(playerid, 0, pInfo[playerid][pSkin],pInfo[playerid][pPosX],pInfo[playerid][pPosY],pInfo[playerid][pPosZ],0,0,0,0,0,0,0); SpawnPlayer(playerid);
Code:
GetPlayerPos(playerid, pInfo[playerid][pPosX], pInfo[playerid][pPosY], pInfo[playerid][pPosZ]); dini_FloatSet(File, "PosX", pInfo[playerid][pPosX]); dini_FloatSet(File, "PosY", pInfo[playerid][pPosY]); dini_FloatSet(File, "PosZ", pInfo[playerid][pPosZ]);