27.11.2011, 05:39
Okay so I have my enum all that etc.. Everything works fine compiles and everything. But how do I have it so it saves my position when I log off and puts it into my .ini file? I have
in my OnPlayerDisconnect callback but how do I get it so it reads my position and rotation of where I am and puts it into those categories? Sorry if I making it hard to understand but could you please help?
Код:
INI_WriteInt(File,"PosX",PlayerInfo[playerid][pPosX]); INI_WriteInt(File,"PosY",PlayerInfo[playerid][pPosY]); INI_WriteInt(File,"PosZ",PlayerInfo[playerid][pPosZ]); INI_WriteInt(File,"RotX",PlayerInfo[playerid][pRotX]); INI_WriteInt(File,"RotY",PlayerInfo[playerid][pRotY]); INI_WriteInt(File,"RotZ",PlayerInfo[playerid][pRotZ]);