Tag Mismatch?
#1

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
Reply
#2

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

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.
Reply
#4

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 ?
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)