MySql - Text3D (tag mismatch)
#1

Hello!

I have only one warning:
Код:
..\uus.pwn(1698) : warning 213: tag mismatch
And the code is:
pawn Код:
cache_get_field_content(0, "Text", HouseInfo[i][hText], db);
So my enum have:
pawn Код:
enum hInfo{
    other stuff...
    Text3D:hText
}
So i put in front of HouseInfo:
pawn Код:
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?
Reply
#2

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.

pawn Код:
Text3D:HouseInfo[i][hText] = Text3D:cache_get_field_content_int(0, "Text", db);
It's not pretty, but it works.
Reply
#3

Quote:
Originally Posted by dusk
Посмотреть сообщение
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.

pawn Код:
Text3D:HouseInfo[i][hText] = Text3D:cache_get_field_content_int(0, "Text", db);
It's not pretty, but it works.
Hmm... Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)