PDA

View Full Version : MySql - Text3D (tag mismatch)


finelaq
08/07/2015, 05:35 PM
Hello!

I have only one warning:

..\uus.pwn(1698) : warning 213: tag mismatch


And the code is:

cache_get_field_content(0, "Text", HouseInfo[i][hText], db);


So my enum have:

enum hInfo{
other stuff...
Text3D:hText
}


So i put in front of HouseInfo:

cache_get_field_content(0, "Text", Text3D:HouseInfo[i][hText], db);


But this doesn't work. It give me this error aigan. I don't really understand MySQL very well. Anyone help?

dusk
08/07/2015, 05:38 PM
First of all, hText is an integer so you should use cache_get_field_content_int. And yes, it does not support tagged variables, but luckily for you its still an integer.


Text3D:HouseInfo[i][hText] = Text3D:cache_get_field_content_int(0, "Text", db);


It's not pretty, but it works.

finelaq
08/07/2015, 05:45 PM
First of all, hText is an integer so you should use cache_get_field_content_int. And yes, it does not support tagged variables, but luckily for you its still an integer.


Text3D:HouseInfo[i][hText] = Text3D:cache_get_field_content_int(0, "Text", db);


It's not pretty, but it works.

Hmm... Thanks!