SA-MP Forums Archive
/park - tag mismatch on new File:cFile.... - 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: /park - tag mismatch on new File:cFile.... (/showthread.php?tid=70817)



/park - tag mismatch on new File:cFile.... - Castle - 27.03.2009

I made this CMD for a FS of Car Ownership I got.
here is the Pastebin:
http://pastebin.com/f55577b60
here is the problem:
Код:
C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(10) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(31) : warning 213: tag mismatch
C:\Documents and Settings\User\Desktop\SAMP GameMode\filterscripts\VOS.pwn(32) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Changed the Warning Lines according to the Pastebin!

I have all Defines in my script, Where is the problem? can someone help?




Re: /park - tag mismatch on new File:cFile.... - ICECOLDKILLAK8 - 27.03.2009

This probably wont fix your problem, But you need to change this
pawn Код:
new oName = GetPlayerName(playerid, pName, sizeof(pName));
to this
pawn Код:
new oName[MAX_PLAYER_NAME];
GetPlayerName(playerid, oName, sizeof(oName));
Also
try using new File: instead of new file:


Re: /park - tag mismatch on new File:cFile.... - kc - 27.03.2009

The file tag uses a capital first letter.

So change...

new file:cFile = fopen(CARMOD_FILE_LOC, io_append);

to

new File:cFile = fopen(CARMOD_FILE_LOC, io_append);


Re: /park - tag mismatch on new File:cFile.... - ICECOLDKILLAK8 - 27.03.2009

lol kc, I edited my post with what you said the second before you posted