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



"tag mismatch" warning - [DOG]irinel1996 - 07.12.2010

Why appears this when I compile the gamemode?
Код:
warning 213: tag mismatch
Line of the warning:
pawn Код:
new sirena = CreateObject(18646, 0, 0, 0, 0, 0, 0, 100.0);
PD: If I put it into a filterscript the warning doesn't appear. I'm using SA-MP 0.3c and an edit of The Godfather gamemode.


I'm sorry my bad English.


Re: ЎЎїїTag mismatch??!! - Mauzen - 07.12.2010

CreateObject expects floats for some arguments, but if you only place 0 there, it will be recognized as integer then.
Use 0.0, to mark it as a float

CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 100.0);


Respuesta: ЎЎїїTag mismatch??!! - [DOG]irinel1996 - 07.12.2010

It's working, thanks!