cache_get_field_content warnings
#1

Hey guys well im trying load my houses, and i get warnings only on the lines were i am getting floats. Heres the lines:

pawn Код:
cache_get_field_content(0, "ID", HouseInfo[i][hhID], mysql, 129);
            cache_get_field_content(0, "Owner", HouseInfo[i][Owner], mysql, 129);
            cache_get_field_content(0, "Owned", HouseInfo[i][Owned], mysql, 129);
            cache_get_field_content(0, "Locked", HouseInfo[i][Locked], mysql, 129);
            cache_get_field_content(0, "InteriorID", HouseInfo[i][InteriorID], mysql, 129);
            cache_get_field_content(0, "World", HouseInfo[i][World], mysql, 129);
            cache_get_field_content(0, "Price", HouseInfo[i][Price], mysql, 129);
            cache_get_field_content(0, "OX", HouseInfo[i][Float:OX], mysql, 129);
            cache_get_field_content(0, "OY", HouseInfo[i][Float:OY], mysql, 129);
            cache_get_field_content(0, "OZ", HouseInfo[i][Float:OZ], mysql, 129);
            cache_get_field_content(0, "IX", HouseInfo[i][Float:IX], mysql, 129);
            cache_get_field_content(0, "IY", HouseInfo[i][Float:IY], mysql, 129);
            cache_get_field_content(0, "IZ", HouseInfo[i][Float:IZ], mysql, 129);
The warnings:
Код:
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7772) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7772) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7773) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7773) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7774) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7774) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7775) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7775) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7776) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7776) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7777) : warning 213: tag mismatch
C:\Users\Mindaugas\Desktop\FunZoneLT\filterscripts\Adminas.pwn(7777) : warning 213: tag mismatch
They only apear on lines with float: . What could be the issue?
Reply
#2

Show us the enum which is used for HouseInfo.

Note that cache_get_field_content functions exist for integers and floats:
pawn Код:
new int = cache_get_field_content_int(row, "column", handle);
new Float:fl = cache_get_field_content_float(row, "Column", handle);
Reply
#3

Nope, it exists for string, integers and floats.

The correct syntax for integers :

cache_get_field_content_int(row, "column", dbhandle);

Same goes for floats, just replace the int wth a float, and dbhandle is optional.


For strings you do:

cache_get_field_content(row, "column", -VAR-TO-STORE-IT-STRING-, dbhandle, length);

EDIT: I accidently wrote INT instead of string at the last example.
Reply
#4

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
Nope, it exists for string, integers and floats.

The correct syntax for integers :

cache_get_field_content_int(row, "column", dbhandle);

Same goes for floats, just replace the int wth a float, and dbhandle is optional.


For strings you do:

cache_get_field_content(row, "column", -VAR-TO-STORE-IT-INT-, dbhandle, length);
I just assumed he knows about the one for strings as he's using it in his code.
Reply
#5

Quote:
Originally Posted by dusk
Посмотреть сообщение
I just assumed he knows about the one for strings as he's using it in his code.
Alright.
Reply
#6

Thank you, guys. Now all of them work, and no warnings at all.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)