SA-MP Forums Archive
[SOLVED] warning 213: tag mismatch. Please need some 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: [SOLVED] warning 213: tag mismatch. Please need some help (/showthread.php?tid=116397)



[SOLVED] warning 213: tag mismatch. Please need some help - TheChaoz - 28.12.2009

need some help with this, I can't understand how to fix this:
Код:
D:\Juan\Programas\GTA\Creaciones Propias\CAOS2.pwn(1203) : warning 213: tag mismatch
D:\Juan\Programas\GTA\Creaciones Propias\CAOS2.pwn(1204) : warning 213: tag mismatch
D:\Juan\Programas\GTA\Creaciones Propias\CAOS2.pwn(1213) : warning 213: tag mismatch
D:\Juan\Programas\GTA\Creaciones Propias\CAOS2.pwn(1214) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
[code=pwn]
1202. new float:Health, float:Armour;
1203. GetPlayerHealth(playerid, Health);
1204. GetPlayerArmour(playerid, Armour);
1205.
1206. if((GetPlayerInterior(playerid) > 0))
1207. {
1208. SetPlayerHealth(playerid, 10000000);
1209. SetPlayerArmour(playerid, 10000000);
1210. }
1211. if((GetPlayerInterior(playerid) == 0))
1212. {
1213. SetPlayerHealth(playerid, Health);
1214. SetPlayerArmour(playerid, Armour);
1215. }
1216.
1217. return 1;
[/code]


Re: warning 213: tag mismatch. Please need some help - Niixie - 28.12.2009

Its because they arrent lined up. you need to write it

like this
Код:
SetPlayerHealth(playerid, Health);
SetPlayerArmour(playerid, Armour);
insted of
Код:
SetPlayerHealth(playerid, Health);
 SetPlayerArmour(playerid, Armour);



Re: warning 213: tag mismatch. Please need some help - TheChaoz - 28.12.2009

Quote:
Originally Posted by Niixie
Its because they arrent lined up. you need to write it

like this
Код:
SetPlayerHealth(playerid, Health);
SetPlayerArmour(playerid, Armour);
insted of
Код:
SetPlayerHealth(playerid, Health);
 SetPlayerArmour(playerid, Armour);
keep having the same problem :S


Re: warning 213: tag mismatch. Please need some help - MadeMan - 28.12.2009

pawn Код:
new float:Health, float:Armour;
Change to capital "F"

pawn Код:
new Float:Health, Float:Armour;



Re: warning 213: tag mismatch. Please need some help - TheChaoz - 28.12.2009

Quote:
Originally Posted by MadeMan
pawn Код:
new float:Health, float:Armour;
Change to capital "F"

pawn Код:
new Float:Health, Float:Armour;
tanks it work