tag mismatch
#1

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;
}
Reply
#2

pawn Код:
INI_WriteFloat(File,"PosX", PosXYZ[0]); // 153
INI_WriteFloat(File,"PosY", PosXYZ[1]); // 154
INI_WriteFloat(File,"PosZ", PosXYZ[2]); // 155
Reply
#3

Thank you, repped.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)