SA-MP Forums Archive
MySql - Text3D (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)
+--- Thread: MySql - Text3D (tag mismatch) (/showthread.php?tid=580834)



MySql - Text3D (tag mismatch) - finelaq - 08.07.2015

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?


Re: MySql - Text3D (tag mismatch) - dusk - 08.07.2015

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.


Re: MySql - Text3D (tag mismatch) - finelaq - 08.07.2015

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!