15.10.2014, 21:14
Hello everyone,
I started learning MySQL few days ago, and suddenly something goes wrong with some floats. It's about register / login system, that saves your position. The problem is when I try to load the last position from the DB with cache_get_field_content_float, I'm getting an error in the mysql log. (cache_get_field_content_float - invalid datatype)
But it's compiling without any errors.
Here's the code:
I tried to find some solution, but I couldn't ... Am I doing something wrong ?
P.S. I'm using the latest BlueG's MySQL plugin (r39-2).
I started learning MySQL few days ago, and suddenly something goes wrong with some floats. It's about register / login system, that saves your position. The problem is when I try to load the last position from the DB with cache_get_field_content_float, I'm getting an error in the mysql log. (cache_get_field_content_float - invalid datatype)
But it's compiling without any errors.
Here's the code:
pawn Код:
PlayerInfo[playerid][posX] = cache_get_field_content_float(0, "posX");
I tried to find some solution, but I couldn't ... Am I doing something wrong ?
P.S. I'm using the latest BlueG's MySQL plugin (r39-2).