tag mismatch - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: tag mismatch (
/showthread.php?tid=345807)
tag mismatch -
Why - 26.05.2012
Hello. I am currently trying to add a system that returns me to where I crashed, however I get three warnings.
Код:
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.
This is my code.
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;
}
Re: tag mismatch -
Aprezt - 26.05.2012
pawn Код:
INI_WriteFloat(File,"PosX", PosXYZ[0]); // 153
INI_WriteFloat(File,"PosY", PosXYZ[1]); // 154
INI_WriteFloat(File,"PosZ", PosXYZ[2]); // 155
Re: tag mismatch -
Why - 26.05.2012
Thank you, repped.
Re: tag mismatch - kikito - 26.05.2012
Off topic:
The people who need help, should do a thread like this one, since it's more easy to fix up their problems without being requesting all the time the lines before and after.