SA-MP Forums Archive
Tag mismatch help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Tag mismatch help (/showthread.php?tid=128543)



Tag mismatch help - kmzr - 18.02.2010

Hello all, for some reason i'm getting multiple "Tag mismatch" warnings, i can't see the problem. Any help is greatly appreciated.

pawn Код:
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
            format(var, 32, "Pocket=%s\n", PlayerInfo[playerid][pPocket]);fwrite(hFile, var);
            format(var, 32, "Bank=%s\n", PlayerInfo[playerid][pBank]);fwrite(hFile, var);
            format(var, 32, "Admin=%s\n", PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
            format(var, 32, "Adjustable=%s\n", PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
            format(var, 32, "Team=%s\n", PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
            format(var, 32, "Phone=%s\n", PlayerInfo[playerid][pPhone]);fwrite(hFile, var);
            format(var, 32, "Level=%s\n", PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
            format(var, 32, "Registered=%s\n", PlayerInfo[playerid][pReg]);fwrite(hFile, var);
            format(var, 32, "Rank=%s\n", PlayerInfo[playerid][pRank]);fwrite(hFile, var);
            format(var, 32, "CKed=%s\n", PlayerInfo[playerid][pCK]);fwrite(hFile, var);
            fclose(hFile);
Errors:
Quote:

C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(58 : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(589) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(590) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(591) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(592) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(593) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(594) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(595) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(596) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(597) : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(59 : warning 213: tag mismatch
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\roleplay2.pwn(599) : warning 213: tag mismatch

This may look like the Godfather GM, but it actually isn't.. Parts have been extracted, but that's about it. The actual GM i'm working with is completely different.


thanks.


Re: Tag mismatch help - Jay_ - 18.02.2010

Make sure the hFile variable has a File: tag.
new File:hFile = File:0;


Re: Tag mismatch help - kmzr - 18.02.2010

Quote:
Originally Posted by Jay_
Make sure the hFile variable has a File: tag.
new File:hFile = File:0;
Thanks buddy, that worked.
i'm new to scripting, still reading up on the Pawn docs. I get easily confused.
I can't seem to work out why the script i'm using has this "new classid = 0;" cos' it interferes with everything and causes warnings. Could you, or someone take a look at this script, it was full of errors/warnings when i started editing it and is still full of them but i'd like to set myself a challenge and fix them, with or without help. I'm hoping to learn from it. http://pastebin.com/f4ea49007 << thats what i started out with and this is what i have right now >> http://pastebin.com/d13755c6b << For some reason i can't register too. I put /register passwordhere but nothing happens :/

Any help is greatly appreciated as stated already, hopefully i learn from this wich is more than likely


Re: Tag mismatch help - kmzr - 18.02.2010

I decided to just delete the "new classid = 0;" and it gave no errors, But still can't figure out why "/register" doesn't work :/