26.05.2012, 12:52
Hello. I am currently trying to add a system that returns me to where I crashed, however I get three warnings.
This is my code.
Код:
sinatra.pwn(153) : warning 213: tag mismatch sinatra.pwn(154) : warning 213: tag mismatch sinatra.pwn(155) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new Float:PosXYZ[3];
GetPlayerPos(playerid, PosXYZ[0], PosXYZ[1], PosXYZ[2]);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
INI_WriteInt(File,"PosX", PosXYZ[0]); // 153
INI_WriteInt(File,"PosY", PosXYZ[1]); // 154
INI_WriteInt(File,"PosZ", PosXYZ[2]); // 155
INI_Close(File);
return 1;
}