MySQL floats not loading!
#1

Once again with the MySQL problem here, this'll be the last I hope..


Now that everything works and there's no query errors/mysql_log.txt errors the floats aren't loading!

Код:
    pData[playerid][pPosX] = cache_get_field_content_float(0, "pPosX");
    pData[playerid][pPosY] = cache_get_field_content_float(0, "pPosY");
    pData[playerid][pPosZ] = cache_get_field_content_float(0, "pPosZ");
    pData[playerid][pPosA] = cache_get_field_content_float(0, "pPosA");
Printing pPosX with both these codes;

Код:
	new Float:tempstr = cache_get_field_content_float(0, "pPosX");
	printf("%f print1", tempstr);
	printf("%f print2", cache_get_field_content_float(0, "pPosX"));
just outputs this


Код:
[09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosX", connection: 1
[09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosX", data: "0"
[09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosY", connection: 1
[09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosY", data: "0"
[09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosZ", connection: 1
[09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosZ", data: "0"
[09:30:50] [DEBUG] cache_get_field_content_float - row: 0, field_name: "pPosA", connection: 1
[09:30:50] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "pPosA", data: "0"
All this is located under "OnAccountLoad"




Код:
	Float:pPosX,
	Float:pPosY,
	Float:pPosZ,
	Float:pPosA
That's under the pData enum

Table has correct types, everything saves but doesn't load!!
Reply


Messages In This Thread
MySQL floats not loading! - by JaydenJason - 06.07.2015, 16:41
Re: MySQL floats not loading! - by Abagail - 06.07.2015, 16:49
Re: MySQL floats not loading! - by JaydenJason - 06.07.2015, 16:51
Re: MySQL floats not loading! - by !damo!spiderman - 06.07.2015, 16:52
Re: MySQL floats not loading! - by JaydenJason - 06.07.2015, 16:53
Re: MySQL floats not loading! - by JaydenJason - 06.07.2015, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)