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=166104)



Tag Mismatch? - Ash. - 07.08.2010

Hi all,
Now usually enums love me, but today i cant seem to get them to work

Heres my code:
pawn Код:
enum HouseInfoThing {id, x, y, z, tx, ty, tz, interior, virtual, cars, housename[64]}
new HouseInfo[1][HouseInfoThing] = {
{0, -3195.2505, -2432.0955, 3.7618, -3195.2505, -2432.0955, 3.7618, 0, 0, 10, "Admin House 1"} //Test House, teleports to the same place XD
};
But when i try and compile my script, i get errors with the above lines.

pawn Код:
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(14) : warning 213: tag mismatch
C:\Users\Ashley Hardy\SA-MP Stuff!\filterscripts\houses.pwn(40) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Warnings.
I dont see whats wrong?

Thanks
Ash


Re: Tag Mismatch? - Hiddos - 07.08.2010

pawn Код:
enum HouseInfoThing {id, Float:x, Float:y, Float:z, Float:tx, Float:ty, Float:tz, interior, virtual, cars, housename[64]}



Re: Tag Mismatch? - Jeffry - 07.08.2010

Use:

pawn Код:
enum HouseInfoThing {id,Float:x, Float:y, Float:z, Float:tx, Float:ty, Float:tz, interior, virtual, cars, housename[64]}

EDIT: Ehh, Hiddos was a little faster.


Re: Tag Mismatch? - ivex - 07.08.2010

x, y ,z , tx etc are a Floats .. so you need to put it like this


enum HouseInfoThing
{
id,
Float: x,
Float: y,
Float: z,
etc

get it ?


Re: Tag Mismatch? - Ash. - 07.08.2010

Ahh, thanks everyone that posted. Its not been a very good week this week, for me anyway